aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl
diff options
context:
space:
mode:
authorDimitri John Ledkov <[email protected]>2016-03-16 21:53:20 +0000
committerBrian Behlendorf <[email protected]>2016-03-17 09:58:01 -0700
commita1bc34c0a7929130577e4c9dd418845674dd35c3 (patch)
tree90124d2e46e88322eb7e7c4c2e843bc99352caad /lib/libspl
parent99d0a9c39ea655fe4545bee31235cd91f2908763 (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 #4425
Diffstat (limited to 'lib/libspl')
-rw-r--r--lib/libspl/include/sys/isa_defs.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libspl/include/sys/isa_defs.h b/lib/libspl/include/sys/isa_defs.h
index 60c6a3bf9..61f4cd96a 100644
--- a/lib/libspl/include/sys/isa_defs.h
+++ b/lib/libspl/include/sys/isa_defs.h
@@ -157,7 +157,22 @@ extern "C" {
#endif
#endif
-#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
+#define _SUNOS_VTOC_16
+
+#else /* Currently x86_64, i386, arm, powerpc, s390, and sparc are supported */
#error "Unsupported ISA type"
#endif