summaryrefslogtreecommitdiff
path: root/spice/barrier.h
diff options
context:
space:
mode:
Diffstat (limited to 'spice/barrier.h')
-rw-r--r--spice/barrier.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/spice/barrier.h b/spice/barrier.h
index 710da09..7d63721 100644
--- a/spice/barrier.h
+++ b/spice/barrier.h
@@ -34,12 +34,7 @@
#ifdef __GNUC__
-#ifdef __i386__
-#define spice_mb() __asm__ __volatile__ ("lock; addl $0,0(%%esp)": : :"memory")
-#else
-//mfence
-#define spice_mb() __asm__ __volatile__ ("lock; addl $0,0(%%rsp)": : :"memory")
-#endif
+#define spice_mb() __sync_synchronize ()
#else