X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Fs390.h;h=86a0a3689244b1ec2f9772fcda5a1093138aec2f;hp=b1474d8c32f524b1309f2068754c1e0040ff296e;hb=f8c43f458c80566d298d539ec518a8be8c7cc861;hpb=999991c6e4600c410181baea65bda9f406464872 diff --git a/urcu/arch/s390.h b/urcu/arch/s390.h index b1474d8..86a0a36 100644 --- a/urcu/arch/s390.h +++ b/urcu/arch/s390.h @@ -40,6 +40,8 @@ extern "C" { #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) @@ -51,6 +53,14 @@ static inline cycles_t caa_get_cycles (void) return cycles; } +/* + * 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