]> granicus.if.org Git - spl/commitdiff
Define the needed ISA types for ARM
authorJorgen Lundman <lundman@lundman.net>
Sat, 28 Apr 2012 06:29:25 +0000 (06:29 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 3 May 2012 16:56:15 +0000 (09:56 -0700)
Add the minimum required ISA types to support the ARM architecture.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/sys/isa_defs.h

index 10c0e0d3d8365fba825025db4d354d08c465636b..02136c5966ec8404fe8be1c6790415fa238395d1 100644 (file)
 #define _LP64
 #endif
 
-#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
+
+#else /* Currently only x86_64, i386, arm, and powerpc arches supported */
 #error "Unsupported ISA type"
 #endif