summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/include/asm/barrier.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/openrisc/include/asm/barrier.h')
-rw-r--r--arch/openrisc/include/asm/barrier.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/openrisc/include/asm/barrier.h b/arch/openrisc/include/asm/barrier.h
new file mode 100644
index 000000000..753829472
--- /dev/null
+++ b/arch/openrisc/include/asm/barrier.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __ASM_BARRIER_H
+#define __ASM_BARRIER_H
+
+#define mb() asm volatile ("l.msync" ::: "memory")
+
+#include <asm-generic/barrier.h>
+
+#endif /* __ASM_BARRIER_H */