mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Add isa_defs for MIPS
GCC for MIPS only defines _LP64 when 64bit, while no _ILP32 defined when 32bit. Signed-off-by: YunQiang Su <syq@debian.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #4712
This commit is contained in:
committed by
Brian Behlendorf
parent
b7faa7aabd
commit
2493dca54e
@@ -172,7 +172,28 @@ extern "C" {
|
||||
#define _BIG_ENDIAN
|
||||
#define _SUNOS_VTOC_16
|
||||
|
||||
#else /* Currently x86_64, i386, arm, powerpc, s390, and sparc are supported */
|
||||
/* MIPS arch specific defines */
|
||||
#elif defined(__mips__)
|
||||
|
||||
#if defined(__MIPSEB__)
|
||||
#define _BIG_ENDIAN
|
||||
#elif defined(__MIPSEL__)
|
||||
#define _LITTLE_ENDIAN
|
||||
#else
|
||||
#error MIPS no endian specified
|
||||
#endif
|
||||
|
||||
#ifndef _LP64
|
||||
#define _ILP32
|
||||
#endif
|
||||
|
||||
#define _SUNOS_VTOC_16
|
||||
|
||||
#else
|
||||
/*
|
||||
* Currently supported:
|
||||
* x86_64, i386, arm, powerpc, s390, sparc, and mips
|
||||
*/
|
||||
#error "Unsupported ISA type"
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user