diff options
author | kib <kib@FreeBSD.org> | 2012-07-21 21:39:23 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-07-21 21:39:23 +0000 |
commit | 6f4572bd6d49ef538ad4214d1404ae8cc4b84a06 (patch) | |
tree | cccbfbd2df75fada7ccfc47544eb79a6c744c33f /sys | |
parent | 02cd44f6d4ad54cb5111ce280f8097c36a70c96e (diff) | |
download | FreeBSD-src-6f4572bd6d49ef538ad4214d1404ae8cc4b84a06.zip FreeBSD-src-6f4572bd6d49ef538ad4214d1404ae8cc4b84a06.tar.gz |
MFamd64 r238597:
Add stmxcsr.
MFC after: 3 weeks
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/isa/npx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c index 50c812c..913cee9 100644 --- a/sys/i386/isa/npx.c +++ b/sys/i386/isa/npx.c @@ -99,6 +99,7 @@ __FBSDID("$FreeBSD$"); #ifdef CPU_ENABLE_SSE #define fxrstor(addr) __asm __volatile("fxrstor %0" : : "m" (*(addr))) #define fxsave(addr) __asm __volatile("fxsave %0" : "=m" (*(addr))) +#define stmxcsr(addr) __asm __volatile("stmxcsr %0" : : "m" (*(addr))) #endif #else /* !(__GNUCLIKE_ASM && !lint) */ @@ -113,6 +114,7 @@ void frstor(caddr_t addr); #ifdef CPU_ENABLE_SSE void fxsave(caddr_t addr); void fxrstor(caddr_t addr); +void stmxcsr(u_int csr); #endif #endif /* __GNUCLIKE_ASM && !lint */ |