X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch_s390.h;fp=urcu%2Farch_s390.h;h=148545b2df5d44c435a96bfde6718018e4069888;hp=fc7b3bc2d6b27a979485f1d84a366acc53311820;hb=5b3c6672bc2d47241979495dca0ad0645db9ff26;hpb=1655f01899c0f8308d66e9ef59e7036f0233243c diff --git a/urcu/arch_s390.h b/urcu/arch_s390.h index fc7b3bc..148545b 100644 --- a/urcu/arch_s390.h +++ b/urcu/arch_s390.h @@ -33,6 +33,16 @@ #define CONFIG_HAVE_MEM_COHERENCY +#define CACHE_LINE_SIZE 128 + +#ifndef __SIZEOF_LONG__ +#ifdef __s390x__ +#define __SIZEOF_LONG__ 8 +#else +#define __SIZEOF_LONG__ 4 +#endif +#endif + #ifndef BITS_PER_LONG #define BITS_PER_LONG (__SIZEOF_LONG__ * 8) #endif