From da5b715a201a36156fa520b6442db7c46f6fdade Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 28 Sep 2015 10:46:54 -0400 Subject: [PATCH] arm: allocate membarrier system call number 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 --- urcu/arch/arm.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/urcu/arch/arm.h b/urcu/arch/arm.h index 2d766cd..1457166 100644 --- a/urcu/arch/arm.h +++ b/urcu/arch/arm.h @@ -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 -- 2.34.1