From: Mathieu Desnoyers Date: Tue, 1 Dec 2009 15:47:21 +0000 (-0500) Subject: Update arch_s390.h, missing definitions X-Git-Tag: v0.3.2~11 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=5b3c6672bc2d47241979495dca0ad0645db9ff26 Update arch_s390.h, missing definitions Signed-off-by: Mathieu Desnoyers --- 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