patch-2.2.4 linux/include/asm-sparc64/system.h
Next file: linux/include/asm-sparc64/termbits.h
Previous file: linux/include/asm-sparc64/sysio.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Wed Mar 10 16:53:38 1999
- Orig file:
v2.2.3/linux/include/asm-sparc64/system.h
- Orig date:
Sun Nov 8 14:03:11 1998
diff -u --recursive --new-file v2.2.3/linux/include/asm-sparc64/system.h linux/include/asm-sparc64/system.h
@@ -1,4 +1,4 @@
-/* $Id: system.h,v 1.47 1998/10/21 03:21:20 davem Exp $ */
+/* $Id: system.h,v 1.48 1999/01/02 16:50:28 davem Exp $ */
#ifndef __SPARC64_SYSTEM_H
#define __SPARC64_SYSTEM_H
@@ -95,6 +95,8 @@
#define nop() __asm__ __volatile__ ("nop")
#define membar(type) __asm__ __volatile__ ("membar " type : : : "memory");
+#define rmb() membar("#LoadLoad | #LoadStore")
+#define wmb() membar("#StoreLoad | #StoreStore")
#define flushi(addr) __asm__ __volatile__ ("flush %0" : : "r" (addr) : "memory")
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)