mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
Set MACHINE_ARCH based on ABI and endianness.
Reviewed by: imp
This commit is contained in:
parent
45b0a3494d
commit
2a89829bde
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215971
@ -57,7 +57,23 @@
|
|||||||
#define MACHINE "mips"
|
#define MACHINE "mips"
|
||||||
#endif
|
#endif
|
||||||
#ifndef MACHINE_ARCH
|
#ifndef MACHINE_ARCH
|
||||||
#define MACHINE_ARCH "mips"
|
#if _BYTE_ORDER == _BIG_ENDIAN
|
||||||
|
#ifdef __mips_n64
|
||||||
|
#define MACHINE_ARCH "mips64eb"
|
||||||
|
#elif defined(__mips_n32)
|
||||||
|
#define MACHINE_ARCH "mipsn32eb"
|
||||||
|
#else
|
||||||
|
#define MACHINE_ARCH "mipseb"
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#ifdef __mips_n64
|
||||||
|
#define MACHINE_ARCH "mips64el"
|
||||||
|
#elif defined(__mips_n32)
|
||||||
|
#define MACHINE_ARCH "mipsn32el"
|
||||||
|
#else
|
||||||
|
#define MACHINE_ARCH "mipsel"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user