summaryrefslogtreecommitdiff
path: root/stage3/def.h
diff options
context:
space:
mode:
Diffstat (limited to 'stage3/def.h')
-rw-r--r--stage3/def.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/stage3/def.h b/stage3/def.h
index 1da628e..f125a01 100644
--- a/stage3/def.h
+++ b/stage3/def.h
@@ -32,4 +32,7 @@ typedef struct {
#define S(x) ((str) { sizeof (x) - 1, (x) })
#define NILS ((str) { 0, nil })
+#define BARRIER_VAR(var) asm volatile(""::"m"(var))
+#define BARRIER() asm volatile("":::"memory")
+
#endif