From cb75844e859f1b97294f53e8370d8e5110b14779 Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Sat, 28 Apr 2012 06:29:25 +0000 Subject: [PATCH] Define the needed ISA types for ARM Add the minimum required ISA types to support the ARM architecture. Signed-off-by: Brian Behlendorf --- include/sys/isa_defs.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/include/sys/isa_defs.h b/include/sys/isa_defs.h index 10c0e0d3d8..02136c5966 100644 --- a/include/sys/isa_defs.h +++ b/include/sys/isa_defs.h @@ -74,7 +74,24 @@ #define _LP64 #endif -#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 + +#else /* Currently only x86_64, i386, arm, and powerpc arches supported */ #error "Unsupported ISA type" #endif