commit 3c25db99fa8c28bd688dd701fc74bf67184a2afc
parent dbd301c60ac5d62db0f2f2142798259fb5e4d329
Author: oblique <psyberbits@gmail.com>
Date: Tue, 9 Apr 2013 09:27:40 +0300
io.h: add compiler barrier
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/io.h b/include/io.h
@@ -10,6 +10,8 @@
/* instruction synchronization barrier */
#define isb() asm volatile("isb" : : : "memory")
+/* compiler barrier */
+#define cb() asm volatile("" : : : "memory");
/* memory barrier */
#define mb() dsb()
/* read memory barrier */