X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Farch%2Fppc.h;h=0bef952ccd20095714bcb96839464a7fdf8681ff;hb=f8c43f458c80566d298d539ec518a8be8c7cc861;hp=1068b288027bda8a5c1f47ce0229e484de827fc6;hpb=1b85da854e5f034224ea208d96d6ed9d709e7976;p=urcu.git diff --git a/urcu/arch/ppc.h b/urcu/arch/ppc.h index 1068b28..0bef952 100644 --- a/urcu/arch/ppc.h +++ b/urcu/arch/ppc.h @@ -24,6 +24,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -81,6 +82,8 @@ extern "C" { rval; \ }) +#define HAS_CAA_GET_CYCLES + typedef unsigned long long cycles_t; #ifdef __powerpc64__ @@ -104,6 +107,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