summaryrefslogtreecommitdiff
path: root/qemu-barrier.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-barrier.h')
-rw-r--r--qemu-barrier.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qemu-barrier.h b/qemu-barrier.h
new file mode 100644
index 0000000000..3bd1075d66
--- /dev/null
+++ b/qemu-barrier.h
@@ -0,0 +1,7 @@
+#ifndef __QEMU_BARRIER_H
+#define __QEMU_BARRIER_H 1
+
+/* FIXME: arch dependant, x86 version */
+#define smp_wmb() asm volatile("" ::: "memory")
+
+#endif