X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Farch_s390.h;h=148545b2df5d44c435a96bfde6718018e4069888;hb=2837ec4082909692bd56aa2b0e217d3e30a3e71b;hp=bf46d3b56e6b660b0868eade0dec1ccf42a0fa69;hpb=49617de1d80d771ac9a1d45b1710b16fac65e0aa;p=urcu.git diff --git a/urcu/arch_s390.h b/urcu/arch_s390.h index bf46d3b..148545b 100644 --- a/urcu/arch_s390.h +++ b/urcu/arch_s390.h @@ -29,10 +29,20 @@ */ #include -#include +#include #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