Add "memory" to the clobber list for membars.
Submitted by: tmm
This commit is contained in:
parent
b06f1a496e
commit
7404706e58
@ -131,7 +131,7 @@ STNC_GEN(u_long, stxa);
|
||||
#define stxa(va, asi, val) ST_GENERIC(va, asi, val, stxa)
|
||||
|
||||
#define membar(mask) do { \
|
||||
__asm __volatile("membar %0" : : "n" (mask)); \
|
||||
__asm __volatile("membar %0" : : "n" (mask) : "memory"); \
|
||||
} while (0)
|
||||
|
||||
#define rd(name) ({ \
|
||||
|
Loading…
x
Reference in New Issue
Block a user