ARM: Be aware of ARMEL and ARMEL
* My BeagleBone gcc defines __ARMEL__ but not __ARM__ which breaks the native tool builds * As ARM was originally Little Endian, we assume __ARM__ means as such. * Look for Big Endian ARM and define the needed big endian preprocessors
This commit is contained in:
@@ -35,9 +35,13 @@
|
|||||||
#elif __MIPSEL__
|
#elif __MIPSEL__
|
||||||
# define __HAIKU_ARCH mipsel
|
# define __HAIKU_ARCH mipsel
|
||||||
# define __HAIKU_ARCH_MIPSEL 1
|
# define __HAIKU_ARCH_MIPSEL 1
|
||||||
#elif __ARM__
|
#elif __ARM__ || __ARMEL__
|
||||||
# define __HAIKU_ARCH arm
|
# define __HAIKU_ARCH arm
|
||||||
# define __HAIKU_ARCH_ARM 1
|
# define __HAIKU_ARCH_ARM 1
|
||||||
|
#elif __ARMEB__
|
||||||
|
# define __HAIKU_ARCH armeb
|
||||||
|
# define __HAIKU_ARCH_ARM 1
|
||||||
|
# define __HAIKU_BIG_ENDIAN 1
|
||||||
#else
|
#else
|
||||||
# error Unsupported architecture!
|
# error Unsupported architecture!
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -47,10 +47,15 @@
|
|||||||
# define __HAIKU_ARCH mipsel
|
# define __HAIKU_ARCH mipsel
|
||||||
# define __HAIKU_ARCH_ABI "mipsel"
|
# define __HAIKU_ARCH_ABI "mipsel"
|
||||||
# define __HAIKU_ARCH_MIPSEL 1
|
# define __HAIKU_ARCH_MIPSEL 1
|
||||||
#elif __ARM__
|
#elif __ARM__ || __ARMEL__
|
||||||
# define __HAIKU_ARCH arm
|
# define __HAIKU_ARCH arm
|
||||||
# define __HAIKU_ARCH_ABI "arm"
|
# define __HAIKU_ARCH_ABI "arm"
|
||||||
# define __HAIKU_ARCH_ARM 1
|
# define __HAIKU_ARCH_ARM 1
|
||||||
|
#elif __ARMEB__
|
||||||
|
# define __HAIKU_ARCH armeb
|
||||||
|
# define __HAIKU_ARCH_ABI "armeb"
|
||||||
|
# define __HAIKU_ARCH_ARM 1
|
||||||
|
# define __HAIKU_BIG_ENDIAN 1
|
||||||
#else
|
#else
|
||||||
# error Unsupported architecture!
|
# error Unsupported architecture!
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ extern void ktrace_vprintf(const char *format, va_list args);
|
|||||||
# define B_MAX_CPU_COUNT 8
|
# define B_MAX_CPU_COUNT 8
|
||||||
#elif __M68K__
|
#elif __M68K__
|
||||||
# define B_MAX_CPU_COUNT 1
|
# define B_MAX_CPU_COUNT 1
|
||||||
#elif __ARM__
|
#elif __ARM__ || __ARMEL__ || __ARMEB__
|
||||||
# define B_MAX_CPU_COUNT 1
|
# define B_MAX_CPU_COUNT 1
|
||||||
#elif __MIPSEL__
|
#elif __MIPSEL__
|
||||||
# define B_MAX_CPU_COUNT 1
|
# define B_MAX_CPU_COUNT 1
|
||||||
|
|||||||
Reference in New Issue
Block a user