summaryrefslogtreecommitdiff
path: root/accel-pppd/triton/triton.h
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/triton/triton.h')
-rw-r--r--accel-pppd/triton/triton.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/triton/triton.h b/accel-pppd/triton/triton.h
index b66737cf..79bbee1b 100644
--- a/accel-pppd/triton/triton.h
+++ b/accel-pppd/triton/triton.h
@@ -138,6 +138,8 @@ void triton_terminate(void);
#define __export __attribute__((visibility("default")))
#define __unused __attribute__((unused))
+#define barrier() asm volatile ("" ::: "memory")
+
#undef offsetof
#ifdef __compiler_offsetof
#define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER)