patch-2.3.16 linux/include/asm-alpha/system.h
Next file: linux/include/asm-alpha/unistd.h
Previous file: linux/include/asm-alpha/smp.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Tue Aug 31 11:30:48 1999
- Orig file:
v2.3.15/linux/include/asm-alpha/system.h
- Orig date:
Tue Aug 3 08:01:29 1999
diff -u --recursive --new-file v2.3.15/linux/include/asm-alpha/system.h linux/include/asm-alpha/system.h
@@ -108,6 +108,15 @@
#define wmb() \
__asm__ __volatile__("wmb": : :"memory")
+#define set_mb(var, value) \
+do { var = value; mb(); } while (0)
+
+#define set_rmb(var, value) \
+do { var = value; rmb(); } while (0)
+
+#define set_wmb(var, value) \
+do { var = value; wmb(); } while (0)
+
#define imb() \
__asm__ __volatile__ ("call_pal %0 #imb" : : "i" (PAL_imb) : "memory")
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)