X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Fppc.h;fp=urcu%2Farch%2Fppc.h;h=1784ccdfe4aed8663e9706dc99e3ff0833f509eb;hp=8a96dd9deb50626efe6a9a8b75e6cbab7c0dc628;hb=1b2c84f9d687784a9026da2eb231a4795bf3781a;hpb=f9b5c2b65a8a2605fc83e84e2c20e6f09033670d 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