svn commit: r239993 - stable/9/sys/i386/isa

Konstantin Belousov kib at FreeBSD.org
Sat Sep 1 15:53:27 UTC 2012


Author: kib
Date: Sat Sep  1 15:53:26 2012
New Revision: 239993
URL: http://svn.freebsd.org/changeset/base/239993

Log:
  MFC r238676:
  Add stmxcsr.
  
  MFC r238914:
  Change (unused) prototype for stmxcsr() to match reality.

Modified:
  stable/9/sys/i386/isa/npx.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/i386/isa/npx.c
==============================================================================
--- stable/9/sys/i386/isa/npx.c	Sat Sep  1 15:50:52 2012	(r239992)
+++ stable/9/sys/i386/isa/npx.c	Sat Sep  1 15:53:26 2012	(r239993)
@@ -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 */


More information about the svn-src-all mailing list