From 33f0d0b1c3c9ee55e49b6f7bed146e483e3fd935 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 26 Sep 2015 11:17:18 -0400 Subject: [PATCH] s390: allocate membarrier system call number 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 --- urcu/arch/s390.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/urcu/arch/s390.h b/urcu/arch/s390.h index b1474d8..6dc09a3 100644 --- a/urcu/arch/s390.h +++ b/urcu/arch/s390.h @@ -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 -- 2.34.1