aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl/include
diff options
context:
space:
mode:
authorJorgen Lundman <[email protected]>2012-04-28 06:31:20 +0000
committerBrian Behlendorf <[email protected]>2012-05-03 11:18:54 -0700
commitc421831192e4015c300239d862c5b9d47088ecd1 (patch)
tree10cfa6d14e7f980349ce957daa9fd6057042ba29 /lib/libspl/include
parent710114089fd7032125b6a2c24b24483c90a87907 (diff)
Define the needed ISA types for ARM
Add the minimum required ISA types to support the ARM architecture. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'lib/libspl/include')
-rw-r--r--lib/libspl/include/sys/isa_defs.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/libspl/include/sys/isa_defs.h b/lib/libspl/include/sys/isa_defs.h
index 677e4fda0..4ab07eb2b 100644
--- a/lib/libspl/include/sys/isa_defs.h
+++ b/lib/libspl/include/sys/isa_defs.h
@@ -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