From: Mathieu Desnoyers Date: Mon, 16 Nov 2015 16:31:10 +0000 (-0500) Subject: hppa: allocate membarrier system call number X-Git-Tag: v0.9.2~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d43d2eb27c7fd0b92ac6f40560bfb88817b165bf;p=userspace-rcu.git hppa: allocate membarrier system call number Now that the membarrier system call is allocated on hppa (parisc), 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/hppa.h b/urcu/arch/hppa.h index f92b0ab..c8d4d05 100644 --- a/urcu/arch/hppa.h +++ b/urcu/arch/hppa.h @@ -32,6 +32,14 @@ extern "C" { #include #include +/* + * On Linux, define the membarrier system call number if not yet available in + * the system headers. + */ +#if (defined(__linux__) && !defined(__NR_membarrier)) +#define __NR_membarrier 343 +#endif + #define HAS_CAA_GET_CYCLES typedef unsigned long caa_cycles_t;