]> git.proxmox.com Git - mirror_zfs.git/blobdiff - lib/libspl/include/sys/isa_defs.h
Add isa_defs for MIPS
[mirror_zfs.git] / lib / libspl / include / sys / isa_defs.h
index 61f4cd96a93d0476da4f1a336d8de9a62f9ff309..3bca5cf02e1b898f909867ad3edba4370d27075d 100644 (file)
@@ -172,7 +172,28 @@ extern "C" {
 #define        _BIG_ENDIAN
 #define        _SUNOS_VTOC_16
 
-#else /* Currently x86_64, i386, arm, powerpc, s390, and sparc are supported */
+/* MIPS arch specific defines */
+#elif defined(__mips__)
+
+#if defined(__MIPSEB__)
+#define        _BIG_ENDIAN
+#elif defined(__MIPSEL__)
+#define        _LITTLE_ENDIAN
+#else
+#error MIPS no endian specified
+#endif
+
+#ifndef _LP64
+#define        _ILP32
+#endif
+
+#define        _SUNOS_VTOC_16
+
+#else
+/*
+ * Currently supported:
+ * x86_64, i386, arm, powerpc, s390, sparc, and mips
+ */
 #error "Unsupported ISA type"
 #endif