mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
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 <lundman@lundman.net> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #2260
This commit is contained in:
parent
de39ec11b8
commit
cdf37f0c59
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user