From: Mathieu Desnoyers Date: Sat, 26 Sep 2015 15:15:02 +0000 (-0400) Subject: ppc: allocate membarrier system call number X-Git-Tag: v0.9.0~27 X-Git-Url: https://git.lttng.org/?p=urcu.git;a=commitdiff_plain;h=1b2c84f9d687784a9026da2eb231a4795bf3781a;ds=sidebyside ppc: allocate membarrier system call number Now that the membarrier system call is allocated on powerpc, 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/ppc.h b/urcu/arch/ppc.h index 8a96dd9..1784ccd 100644 --- a/urcu/arch/ppc.h +++ b/urcu/arch/ppc.h @@ -105,6 +105,14 @@ static inline cycles_t caa_get_cycles(void) } #endif +/* + * Define the membarrier system call number if not yet available in the + * system headers. + */ +#ifndef __NR_membarrier +#define __NR_membarrier 365 +#endif + #ifdef __cplusplus } #endif