]> granicus.if.org Git - zfs/commitdiff
Add support for aarch64 (ARMv8)
authorJorgen Lundman <lundman@lundman.net>
Wed, 16 Apr 2014 03:20:31 +0000 (12:20 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Apr 2014 22:35:30 +0000 (15:35 -0700)
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 <lundman@lundman.net>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2260

lib/libspl/include/sys/isa_defs.h

index 446dbfc370d8bf75a5d8902cd3f6898262673c82..ae1a35229157f97b9f2176b54d0d645c6d7be569 100644 (file)
@@ -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