Add "memory" to the clobber list for membars.

Submitted by:	tmm
This commit is contained in:
jake 2001-12-29 06:51:50 +00:00
parent b06f1a496e
commit 7404706e58

View File

@ -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) ({ \