arm: allocate membarrier system call number
[urcu.git] / urcu / arch / arm.h
index e20695ecf3cf6acb142a1830fe5d527c0f4d0cf6..1457166270314653f9564cdaf99e6c6a598e7e9b 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <urcu/compiler.h>
 #include <urcu/config.h>
+#include <urcu/syscall-compat.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -51,6 +52,14 @@ static inline cycles_t caa_get_cycles (void)
        return (cycles_t)thetime;
 }
 
+/*
+ * Define the membarrier system call number if not yet available in the
+ * system headers.
+ */
+#ifndef __NR_membarrier
+#define __NR_membarrier                389
+#endif
+
 #ifdef __cplusplus 
 }
 #endif
This page took 0.026028 seconds and 4 git commands to generate.