arm: allocate membarrier system call number
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 28 Sep 2015 14:46:54 +0000 (10:46 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 28 Sep 2015 14:46:54 +0000 (10:46 -0400)
Now that the membarrier system call is allocated on ARM, 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/arm.h

index 2d766cd61059684ac30f3cb2989d2a52d07571e1..1457166270314653f9564cdaf99e6c6a598e7e9b 100644 (file)
@@ -52,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.025263 seconds and 4 git commands to generate.