svn commit: r239943 - stable/9/sys/amd64/amd64
Konstantin Belousov
kib at FreeBSD.org
Fri Aug 31 11:29:40 UTC 2012
Author: kib
Date: Fri Aug 31 11:29:39 2012
New Revision: 239943
URL: http://svn.freebsd.org/changeset/base/239943
Log:
MFC r238597:
Add stmxcsr.
MFC r238914, only amd64 part, do not record mi:
Change (unused) prototype for stmxcsr() to match reality.
Modified:
stable/9/sys/amd64/amd64/fpu.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/amd64/amd64/fpu.c
==============================================================================
--- stable/9/sys/amd64/amd64/fpu.c Fri Aug 31 11:20:12 2012 (r239942)
+++ stable/9/sys/amd64/amd64/fpu.c Fri Aug 31 11:29:39 2012 (r239943)
@@ -73,6 +73,7 @@ __FBSDID("$FreeBSD$");
#define fxrstor(addr) __asm __volatile("fxrstor %0" : : "m" (*(addr)))
#define fxsave(addr) __asm __volatile("fxsave %0" : "=m" (*(addr)))
#define ldmxcsr(csr) __asm __volatile("ldmxcsr %0" : : "m" (csr))
+#define stmxcsr(addr) __asm __volatile("stmxcsr %0" : : "m" (*(addr)))
static __inline void
xrstor(char *addr, uint64_t mask)
@@ -105,6 +106,7 @@ void fnstsw(caddr_t addr);
void fxsave(caddr_t addr);
void fxrstor(caddr_t addr);
void ldmxcsr(u_int csr);
+void stmxcsr(u_int *csr);
void xrstor(char *addr, uint64_t mask);
void xsave(char *addr, uint64_t mask);
More information about the svn-src-stable-9
mailing list