Skip to content

Commit

Permalink
Define the needed ISA types for Sparc
Browse files Browse the repository at this point in the history
Add the minimum required ISA types to support the Sparc
architecture.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: marku89 <mar42@kola.li>
Closes #317
  • Loading branch information
marku89 authored and behlendorf committed Jan 9, 2014
1 parent aeeb4e0 commit d58a99a
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion include/sys/isa_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d58a99a

Please sign in to comment.