Skip to content

Commit

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

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
  • Loading branch information
lundman authored and behlendorf committed May 3, 2012
1 parent 7101140 commit c421831
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/libefi/rdwr_efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
21 changes: 20 additions & 1 deletion lib/libspl/include/sys/isa_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c421831

Please sign in to comment.