aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDimitri John Ledkov <[email protected]>2016-03-16 21:32:08 +0000
committerBrian Behlendorf <[email protected]>2016-03-17 09:54:49 -0700
commit224817e2a81912b46453a96b9eec4804856c801b (patch)
tree37d8267c86a0dbcc2f8beab27b886190a83befb3 /include
parent7bb5d92de8c4d795e9b393aa5ea9c9ad3e43b199 (diff)
Add support for s390[x].
Signed-off-by: Dimitri John Ledkov <[email protected]> Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #537
Diffstat (limited to 'include')
-rw-r--r--include/sys/isa_defs.h16
1 files changed, 15 insertions, 1 deletions
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