From: Mathieu Desnoyers Date: Mon, 28 Sep 2015 14:46:54 +0000 (-0400) Subject: arm: allocate membarrier system call number X-Git-Tag: v0.9.0~25 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=da5b715a201a36156fa520b6442db7c46f6fdade;p=userspace-rcu.git 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 --- 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