X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Farch%2Farm.h;h=1457166270314653f9564cdaf99e6c6a598e7e9b;hb=c23069c6cf733ed8a39e64300c264285f658ae23;hp=e20695ecf3cf6acb142a1830fe5d527c0f4d0cf6;hpb=e51500edbd9919cee53bc85cbb4b22cd4786fc42;p=urcu.git diff --git a/urcu/arch/arm.h b/urcu/arch/arm.h index e20695e..1457166 100644 --- a/urcu/arch/arm.h +++ b/urcu/arch/arm.h @@ -24,6 +24,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -51,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