summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-05-27 20:28:56 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-05-27 20:28:56 +0200
commitdc1631b7dc508cb67fa6983007ddba3a2314d6bf (patch)
treeb6dd9a0fb4f5bed2ba9fb7c1c1c3b091c7c32400
parent306d763d872bae2a1cc23fe13b769cace8198a3a (diff)
Add missing memory clobber
* i386/i386/xen.h (mb, rmb, wmb): Add memory clobber.
-rw-r--r--i386/i386/xen.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/xen.h b/i386/i386/xen.h
index 5bdaf0b..638d671 100644
--- a/i386/i386/xen.h
+++ b/i386/i386/xen.h
@@ -33,7 +33,7 @@
/* TODO: this should be moved in appropriate non-Xen place. */
#define barrier() __asm__ __volatile__ ("": : :"memory")
-#define mb() __asm__ __volatile__("lock; addl $0,0(%esp)")
+#define mb() __asm__ __volatile__("lock; addl $0,0(%%esp)":::"memory")
#define rmb() mb()
#define wmb() mb()
MACH_INLINE unsigned long xchgl(volatile unsigned long *ptr, unsigned long x)