X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Fs390.h;h=e12c88c3398728025e745bd53e4c997e1d5e2fca;hp=5985b2014d78513d1eb010fa33edf93f70df1b36;hb=67ecffc0f530a7b5c4dd5111ea7dd3213da8eb91;hpb=bc2433a9853a945a825c244e9ccfe341b73b2ceb diff --git a/urcu/arch/s390.h b/urcu/arch/s390.h index 5985b20..e12c88c 100644 --- a/urcu/arch/s390.h +++ b/urcu/arch/s390.h @@ -30,15 +30,18 @@ #include #include +#include #ifdef __cplusplus extern "C" { -#endif +#endif #define CAA_CACHE_LINE_SIZE 128 #define cmm_mb() __asm__ __volatile__("bcr 15,0" : : : "memory") +#define HAS_CAA_GET_CYCLES + typedef unsigned long long cycles_t; static inline cycles_t caa_get_cycles (void) @@ -50,7 +53,15 @@ static inline cycles_t caa_get_cycles (void) return cycles; } -#ifdef __cplusplus +/* + * Define the membarrier system call number if not yet available in the + * system headers. + */ +#ifndef __NR_membarrier +#define __NR_membarrier 356 +#endif + +#ifdef __cplusplus } #endif