ppc: allocate membarrier system call number
[urcu.git] / urcu / arch / ppc.h
index 1068b288027bda8a5c1f47ce0229e484de827fc6..1784ccdfe4aed8663e9706dc99e3ff0833f509eb 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <urcu/compiler.h>
 #include <urcu/config.h>
+#include <urcu/syscall-compat.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -104,6 +105,14 @@ static inline cycles_t caa_get_cycles(void)
 }
 #endif
 
+/*
+ * Define the membarrier system call number if not yet available in the
+ * system headers.
+ */
+#ifndef __NR_membarrier
+#define __NR_membarrier                365
+#endif
+
 #ifdef __cplusplus 
 }
 #endif
This page took 0.023251 seconds and 4 git commands to generate.