diff options
author | marku89 <[email protected]> | 2014-01-07 20:33:19 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-01-09 15:55:32 -0800 |
commit | d58a99af2f308dde912639c66af7f9c2cb9e8680 (patch) | |
tree | 74988a6295ad9483b0334589bd8022a6ac28992e /include | |
parent | aeeb4e0c0ae75b99ebbaa3056f0afc8e12949532 (diff) |
Define the needed ISA types for Sparc
Add the minimum required ISA types to support the Sparc
architecture.
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ned Bass <[email protected]>
Signed-off-by: marku89 <[email protected]>
Closes #317
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/isa_defs.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/include/sys/isa_defs.h b/include/sys/isa_defs.h index 35aee61c9..cc59a3aab 100644 --- a/include/sys/isa_defs.h +++ b/include/sys/isa_defs.h @@ -91,7 +91,35 @@ #define _BIG_ENDIAN #endif -#else /* Currently only x86_64, i386, arm, and powerpc arches supported */ +/* sparc arch specific defines */ +#elif defined(__sparc) || defined(__sparc__) + +#if !defined(__sparc) +#define __sparc +#endif + +#if !defined(__sparc__) +#define __sparc__ +#endif + +#define _BIG_ENDIAN +#define _SUNOS_VTOC_16 + +/* sparc64 arch specific defines */ +#elif defined(__sparc64) || defined(__sparc64__) + +#if !defined(__sparc64) +#define __sparc64 +#endif + +#if !defined(__sparc64__) +#define __sparc64__ +#endif + +#define _BIG_ENDIAN +#define _SUNOS_VTOC_16 + +#else /* Currently x86_64, i386, arm, powerpc, and sparc are supported */ #error "Unsupported ISA type" #endif |