summaryrefslogtreecommitdiff
path: root/arch/x86_64/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/atomic.h')
-rw-r--r--arch/x86_64/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/atomic.h b/arch/x86_64/atomic.h
index b2014cc0..2ab1f7a2 100644
--- a/arch/x86_64/atomic.h
+++ b/arch/x86_64/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" : "=m"(*p) : "r"(x) : "memory" );
+ __asm__( "mov %1, %0 ; mfence" : "=m"(*p) : "r"(x) : "memory" );
}
static inline void a_spin()