mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 14:49:36 -04:00
Mark inline stmxcsr instructions as volatile, since this appears to be
the only way to convince gcc that they read the MXCSR. The volatile annotation may be needed elsewhere as well.
This commit is contained in:
parent
2c144a95ed
commit
c1b70ced4f
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ extern const fenv_t __fe_dfl_env;
|
|||
#define __fnstsw(__sw) __asm("fnstsw %0" : "=am" (*(__sw)))
|
||||
#define __fwait() __asm __volatile("fwait")
|
||||
#define __ldmxcsr(__csr) __asm __volatile("ldmxcsr %0" : : "m" (__csr))
|
||||
#define __stmxcsr(__csr) __asm("stmxcsr %0" : "=m" (*(__csr)))
|
||||
#define __stmxcsr(__csr) __asm __volatile("stmxcsr %0" : "=m" (*(__csr)))
|
||||
|
||||
static __inline int
|
||||
feclearexcept(int __excepts)
|
||||
|
|
|
|||
Loading…
Reference in a new issue