From 5b3c6672bc2d47241979495dca0ad0645db9ff26 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 1 Dec 2009 10:47:21 -0500 Subject: [PATCH] Update arch_s390.h, missing definitions Signed-off-by: Mathieu Desnoyers --- urcu/arch_s390.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.34.1