Define the needed ISA types for ARM
[zfs.git] / lib / libspl / include / sys / isa_defs.h
index 677e4fd..4ab07eb 100644 (file)
@@ -102,7 +102,26 @@ extern "C" {
 
 #define        _SUNOS_VTOC_16
 
-#else /* Currently only x86_64, i386, and powerpc arches supported */
+/* arm arch specific defines */
+#elif defined(__arm) || defined(__arm__)
+
+#if !defined(__arm)
+#define __arm
+#endif
+
+#if !defined(__arm__)
+#define __arm__
+#endif
+
+#if defined(__ARMEL__)
+#define _LITTLE_ENDIAN
+#else
+#define _BIG_ENDIAN
+#endif
+
+#define        _SUNOS_VTOC_16
+
+#else /* Currently only x86_64, i386, arm, and powerpc arches supported */
 #error "Unsupported ISA type"
 #endif