s390: allocate membarrier system call number
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 26 Sep 2015 15:17:18 +0000 (11:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 26 Sep 2015 15:17:18 +0000 (11:17 -0400)
Now that the membarrier system call is allocated on s390/s390x, 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/s390.h

index b1474d8c32f524b1309f2068754c1e0040ff296e..6dc09a3e76c9d48963a5ddc185f07bb84a4f3eae 100644 (file)
@@ -51,6 +51,14 @@ static inline cycles_t caa_get_cycles (void)
        return cycles;
 }
 
+/*
+ * Define the membarrier system call number if not yet available in the
+ * system headers.
+ */
+#ifndef __NR_membarrier
+#define __NR_membarrier                356
+#endif
+
 #ifdef __cplusplus 
 }
 #endif
This page took 0.025423 seconds and 4 git commands to generate.