From cdf37f0c596bbdca8464ccf99482725507724fae Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Wed, 16 Apr 2014 12:20:31 +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 #2260 --- lib/libspl/include/sys/isa_defs.h | 4 ++-- 1 file 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