aboutsummaryrefslogtreecommitdiff
path: root/arch/um/sys-x86_64/shared/sysdep/barrier.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/sys-x86_64/shared/sysdep/barrier.h')
-rw-r--r--arch/um/sys-x86_64/shared/sysdep/barrier.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/um/sys-x86_64/shared/sysdep/barrier.h b/arch/um/sys-x86_64/shared/sysdep/barrier.h
new file mode 100644
index 00000000000..7b610befdc8
--- /dev/null
+++ b/arch/um/sys-x86_64/shared/sysdep/barrier.h
@@ -0,0 +1,7 @@
+#ifndef __SYSDEP_X86_64_BARRIER_H
+#define __SYSDEP_X86_64_BARRIER_H
+
+/* Copied from include/asm-x86_64 for use by userspace. */
+#define mb() asm volatile("mfence":::"memory")
+
+#endif