patch-2.1.48 linux/include/asm-mips/system.h
Next file: linux/include/asm-mips/unistd.h
Previous file: linux/include/asm-mips/pgtable.h
Back to the patch index
Back to the overall index
-  Lines: 21
-  Date:
Thu Jul 31 13:09:18 1997
-  Orig file: 
v2.1.47/linux/include/asm-mips/system.h
-  Orig date: 
Thu Jun 26 12:33:40 1997
diff -u --recursive --new-file v2.1.47/linux/include/asm-mips/system.h linux/include/asm-mips/system.h
@@ -108,13 +108,13 @@
 #define save_and_cli(x) __save_and_cli(x)
 #define restore_flags(x) __restore_flags(x)
 
-#define sync_mem()                       \
-__asm__ __volatile__(                    \
-	".set\tnoreorder\n\t"            \
-	"sync\n\t"                       \
-	".set\treorder"                  \
-        : /* no output */                \
-	: /* no input */                 \
+#define mb()						\
+__asm__ __volatile__(					\
+	"# prevent instructions being moved around\n\t"	\
+	".set\tnoreorder\n\t"				\
+	".set\treorder"					\
+        : /* no output */				\
+	: /* no input */				\
 	: "memory")
 
 #if !defined (__LANGUAGE_ASSEMBLY__)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov