ppc: allocate membarrier system call number
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 26 Sep 2015 15:15:02 +0000 (11:15 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 26 Sep 2015 15:15:02 +0000 (11:15 -0400)
Now that the membarrier system call is allocated on powerpc, allocate
its number in our architecture header if the system headers don't
allocate it. This allows using the membarrier system call as soon as
implemented in the kernel, even if the distribution has old kernel
headers.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/arch/ppc.h

index 8a96dd9deb50626efe6a9a8b75e6cbab7c0dc628..1784ccdfe4aed8663e9706dc99e3ff0833f509eb 100644 (file)
@@ -105,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.025647 seconds and 4 git commands to generate.