]> git.proxmox.com Git - mirror_spl.git/commitdiff
Add support for aarch64 (ARMv8)
authorJorgen Lundman <lundman@lundman.net>
Wed, 16 Apr 2014 03:18:38 +0000 (12:18 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Apr 2014 22:25:32 +0000 (15:25 -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 #351

include/sys/isa_defs.h

index cc59a3aab44780e86b91b9605a7f4ff1c20efef1..aa5ae43c2683224e2bd912cbd5a449038e42a07f 100644 (file)
@@ -75,7 +75,7 @@
 #endif
 
 /* arm arch specific defines */
-#elif defined(__arm) || defined(__arm__)
+#elif defined(__arm) || defined(__arm__) || defined(__aarch64__)
 
 #if !defined(__arm)
 #define __arm
@@ -85,7 +85,7 @@
 #define __arm__
 #endif
 
-#if defined(__ARMEL__)
+#if defined(__ARMEL__) || defined(__AARCH64EL__)
 #define _LITTLE_ENDIAN
 #else
 #define _BIG_ENDIAN