]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Define the needed ISA types for ARM
authorJorgen Lundman <lundman@lundman.net>
Sat, 28 Apr 2012 06:31:20 +0000 (06:31 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 3 May 2012 18:18:54 +0000 (11:18 -0700)
Add the minimum required ISA types to support the ARM architecture.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
lib/libefi/rdwr_efi.c
lib/libspl/include/sys/isa_defs.h

index c317d24f8b2f5c9c344f10172c037f8d2f6187be..0600a9523ebce03f4f37dbd0bb0169dbc59cbf0c 100644 (file)
@@ -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 */
 
index 677e4fda0c9db688660652e936a91712b672cd3b..4ab07eb2b5f5d8890cbfc85e59848043a2f4c5f9 100644 (file)
@@ -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