svn commit: r234705 - stable/9/sys/powerpc/include

Nathan Whitehorn nwhitehorn at FreeBSD.org
Thu Apr 26 13:57:42 UTC 2012


Author: nwhitehorn
Date: Thu Apr 26 13:57:41 2012
New Revision: 234705
URL: http://svn.freebsd.org/changeset/base/234705

Log:
  MFC r234589:
  Correctly specify assembler constrains for synchronization instructions.

Modified:
  stable/9/sys/powerpc/include/cpufunc.h
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/powerpc/include/cpufunc.h
==============================================================================
--- stable/9/sys/powerpc/include/cpufunc.h	Thu Apr 26 13:56:38 2012	(r234704)
+++ stable/9/sys/powerpc/include/cpufunc.h	Thu Apr 26 13:57:41 2012	(r234705)
@@ -176,21 +176,21 @@ static __inline void
 eieio(void)
 {
 
-	__asm __volatile ("eieio");
+	__asm __volatile ("eieio" : : : "memory");
 }
 
 static __inline void
 isync(void)
 {
 
-	__asm __volatile ("isync");
+	__asm __volatile ("isync" : : : "memory");
 }
 
 static __inline void
 powerpc_sync(void)
 {
 
-	__asm __volatile ("sync");
+	__asm __volatile ("sync" : : : "memory");
 }
 
 static __inline register_t


More information about the svn-src-stable-9 mailing list