]> granicus.if.org Git - spl/commitdiff
Add support for s390[x].
authorDimitri John Ledkov <xnox@ubuntu.com>
Wed, 16 Mar 2016 21:32:08 +0000 (21:32 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 17 Mar 2016 16:54:49 +0000 (09:54 -0700)
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #537

include/sys/isa_defs.h

index 7e15b93211444e99a4fcee54592cbb17394716ef..3d474872cb0b846353972d520ab6f70919c05efb 100644 (file)
 #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