From: Dimitri John Ledkov Date: Wed, 16 Mar 2016 21:32:08 +0000 (+0000) Subject: Add support for s390[x]. X-Git-Tag: zfs-0.8.0-rc1~152^2~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=224817e2a81912b46453a96b9eec4804856c801b;p=zfs Add support for s390[x]. Signed-off-by: Dimitri John Ledkov Signed-off-by: Richard Yao Signed-off-by: Brian Behlendorf Closes #537 --- diff --git a/include/sys/isa_defs.h b/include/sys/isa_defs.h index 7e15b9321..3d474872c 100644 --- a/include/sys/isa_defs.h +++ b/include/sys/isa_defs.h @@ -131,7 +131,21 @@ #define _BIG_ENDIAN #define _SUNOS_VTOC_16 -#else /* Currently x86_64, i386, arm, powerpc, and sparc are supported */ +/* s390 arch specific defines */ +#elif defined(__s390__) +#if defined(__s390x__) +#if !defined(_LP64) +#define _LP64 +#endif +#else +#if !defined(_ILP32) +#define _ILP32 +#endif +#endif + +#define _BIG_ENDIAN + +#else /* Currently x86_64, i386, arm, powerpc, s390, and sparc are supported */ #error "Unsupported ISA type" #endif