diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-10-09 00:00:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-10-09 00:00:47 +0000 |
commit | d6434e1042f3b0a6dfe1b1f615af369486f9b1fa (patch) | |
tree | e2be02f33984c48ec019c654051d27964e42c441 /include/asm-sparc/system.h | |
parent | 609d1e803baf519487233b765eb487f9ec227a18 (diff) |
Merge with 2.3.19.
Diffstat (limited to 'include/asm-sparc/system.h')
-rw-r--r-- | include/asm-sparc/system.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-sparc/system.h b/include/asm-sparc/system.h index 3a4ee58a3..b489cac95 100644 --- a/include/asm-sparc/system.h +++ b/include/asm-sparc/system.h @@ -1,4 +1,4 @@ -/* $Id: system.h,v 1.74 1999/05/08 03:03:14 davem Exp $ */ +/* $Id: system.h,v 1.75 1999/09/01 08:06:08 davem Exp $ */ #include <linux/config.h> #ifndef __SPARC_SYSTEM_H @@ -309,6 +309,9 @@ do { register unsigned long bits asm("g7"); \ #define mb() __asm__ __volatile__ ("" : : : "memory") #define rmb() mb() #define wmb() mb() +#define set_mb(__var, __value) do { __var = __value; mb(); } while(0) +#define set_rmb(__var, __value) set_mb(__var, __value) +#define set_wmb(__var, __value) set_mb(__var, __value) #define nop() __asm__ __volatile__ ("nop"); |