diff options
Diffstat (limited to 'arch/x32')
-rw-r--r-- | arch/x32/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x32/atomic.h b/arch/x32/atomic.h index 2ab1f7a2..7690183d 100644 --- a/arch/x32/atomic.h +++ b/arch/x32/atomic.h @@ -83,7 +83,7 @@ static inline void a_dec(volatile int *x) static inline void a_store(volatile int *p, int x) { - __asm__( "mov %1, %0 ; mfence" : "=m"(*p) : "r"(x) : "memory" ); + __asm__( "mov %1, %0 ; lock ; orl $0,(%%rsp)" : "=m"(*p) : "r"(x) : "memory" ); } static inline void a_spin() |