summaryrefslogtreecommitdiff
path: root/i386/i386/xen.h
diff options
context:
space:
mode:
Diffstat (limited to 'i386/i386/xen.h')
-rw-r--r--i386/i386/xen.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/xen.h b/i386/i386/xen.h
index 5bdaf0b8..c6811873 100644
--- a/i386/i386/xen.h
+++ b/i386/i386/xen.h
@@ -21,6 +21,7 @@
#ifdef MACH_XEN
#ifndef __ASSEMBLER__
+#include <kern/macros.h>
#include <kern/printf.h>
#include <mach/machine/vm_types.h>
#include <mach/vm_param.h>
@@ -32,8 +33,7 @@
#include <xen/public/xen.h>
/* 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)