summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJorgen Lundman <[email protected]>2014-04-16 12:20:31 +0900
committerBrian Behlendorf <[email protected]>2014-04-25 15:35:30 -0700
commitcdf37f0c596bbdca8464ccf99482725507724fae (patch)
treee83a576ec788fbb9903e4f3b2b553d72ce5d2769 /lib
parentde39ec11b885f97e6256324ee89eaf75af9852f6 (diff)
Add support for aarch64 (ARMv8)
Using the ARM reference simulation (fast model foundation v8) I cross compiled spl and zfs, to confirm it works on ARMv8 (64 bit arm architecture, called aarch64 in Linux). As it is based on previous ARM porting, the resulting patch is disappointingly small, there was very little to do. The code fixes the compile issues and has light testing done. Signed-off-by: Jorgen Lundman <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2260
Diffstat (limited to 'lib')
-rw-r--r--lib/libspl/include/sys/isa_defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libspl/include/sys/isa_defs.h b/lib/libspl/include/sys/isa_defs.h
index 446dbfc37..ae1a35229 100644
--- a/lib/libspl/include/sys/isa_defs.h
+++ b/lib/libspl/include/sys/isa_defs.h
@@ -103,7 +103,7 @@ extern "C" {
#define _SUNOS_VTOC_16
/* arm arch specific defines */
-#elif defined(__arm) || defined(__arm__)
+#elif defined(__arm) || defined(__arm__) || defined(__aarch64__)
#if !defined(__arm)
#define __arm
@@ -113,7 +113,7 @@ extern "C" {
#define __arm__
#endif
-#if defined(__ARMEL__)
+#if defined(__ARMEL__) || defined(__AARCH64EL__)
#define _LITTLE_ENDIAN
#else
#define _BIG_ENDIAN