From c421831192e4015c300239d862c5b9d47088ecd1 Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Sat, 28 Apr 2012 06:31:20 +0000 Subject: Define the needed ISA types for ARM Add the minimum required ISA types to support the ARM architecture. Signed-off-by: Brian Behlendorf --- lib/libefi/rdwr_efi.c | 2 +- lib/libspl/include/sys/isa_defs.h | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/lib/libefi/rdwr_efi.c b/lib/libefi/rdwr_efi.c index c317d24f8..0600a9523 100644 --- a/lib/libefi/rdwr_efi.c +++ b/lib/libefi/rdwr_efi.c @@ -87,7 +87,7 @@ struct dk_map2 default_vtoc_map[NDKMAP] = { #if defined(_SUNOS_VTOC_16) -#if defined(i386) || defined(__amd64) +#if defined(i386) || defined(__amd64) || defined(__arm) { V_BOOT, V_UNMNT }, /* i - 8 */ { V_ALTSCTR, 0 }, /* j - 9 */ diff --git a/lib/libspl/include/sys/isa_defs.h b/lib/libspl/include/sys/isa_defs.h index 677e4fda0..4ab07eb2b 100644 --- a/lib/libspl/include/sys/isa_defs.h +++ b/lib/libspl/include/sys/isa_defs.h @@ -102,7 +102,26 @@ extern "C" { #define _SUNOS_VTOC_16 -#else /* Currently only x86_64, i386, and powerpc arches supported */ +/* arm arch specific defines */ +#elif defined(__arm) || defined(__arm__) + +#if !defined(__arm) +#define __arm +#endif + +#if !defined(__arm__) +#define __arm__ +#endif + +#if defined(__ARMEL__) +#define _LITTLE_ENDIAN +#else +#define _BIG_ENDIAN +#endif + +#define _SUNOS_VTOC_16 + +#else /* Currently only x86_64, i386, arm, and powerpc arches supported */ #error "Unsupported ISA type" #endif -- cgit v1.2.3