From d6e6e4a98eef03971213044d4277edd56dda61ab Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Wed, 16 Apr 2014 12:18:38 +0900 Subject: [PATCH] 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 Signed-off-by: Brian Behlendorf Closes #351 --- include/sys/isa_defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sys/isa_defs.h b/include/sys/isa_defs.h index cc59a3aab..aa5ae43c2 100644 --- a/include/sys/isa_defs.h +++ b/include/sys/isa_defs.h @@ -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 -- 2.40.0