patch-2.4.0-test9 linux/include/asm-sparc/system.h
Next file: linux/include/asm-sparc64/atomic.h
Previous file: linux/include/asm-sparc/resource.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Tue Oct 3 09:24:41 2000
- Orig file:
v2.4.0-test8/linux/include/asm-sparc/system.h
- Orig date:
Fri Aug 4 18:16:11 2000
diff -u --recursive --new-file v2.4.0-test8/linux/include/asm-sparc/system.h linux/include/asm-sparc/system.h
@@ -1,4 +1,4 @@
-/* $Id: system.h,v 1.83 2000/08/04 05:35:55 davem Exp $ */
+/* $Id: system.h,v 1.84 2000/09/23 02:11:22 davem Exp $ */
#include <linux/config.h>
#ifndef __SPARC_SYSTEM_H
@@ -280,6 +280,9 @@
#define wmb() mb()
#define set_mb(__var, __value) do { __var = __value; mb(); } while(0)
#define set_wmb(__var, __value) set_mb(__var, __value)
+#define smp_mb() __asm__ __volatile__("":::"memory");
+#define smp_rmb() __asm__ __volatile__("":::"memory");
+#define smp_wmb() __asm__ __volatile__("":::"memory");
#define nop() __asm__ __volatile__ ("nop");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)