diff --git a/arch/arm/bits/endian.h b/arch/arm/bits/endian.h index 172c338f5080a09c1f776237e761ea3001ebf1bf..5953724a0b69603238653b75cccfc2686c3ccb96 100644 --- a/arch/arm/bits/endian.h +++ b/arch/arm/bits/endian.h @@ -1 +1,5 @@ +#if __ARMEB__ +#define __BYTE_ORDER __BIG_ENDIAN +#else #define __BYTE_ORDER __LITTLE_ENDIAN +#endif diff --git a/arch/microblaze/bits/endian.h b/arch/microblaze/bits/endian.h index ef074b776ed9e094c468854670fc1a2bc635d7e3..d82a92acc76976a282032a4560b0c07a8ec7c63e 100644 --- a/arch/microblaze/bits/endian.h +++ b/arch/microblaze/bits/endian.h @@ -1 +1,5 @@ +#if __MICROBLAZEEL__ +#define __BYTE_ORDER __LITTLE_ENDIAN +#else #define __BYTE_ORDER __BIG_ENDIAN +#endif diff --git a/arch/mips/bits/endian.h b/arch/mips/bits/endian.h index ef074b776ed9e094c468854670fc1a2bc635d7e3..5399dcb54433380d7b10e2c0c011307e2656d273 100644 --- a/arch/mips/bits/endian.h +++ b/arch/mips/bits/endian.h @@ -1 +1,5 @@ +#if _MIPSEL || __MIPSEL || __MIPSEL__ +#define __BYTE_ORDER __LITTLE_ENDIAN +#else #define __BYTE_ORDER __BIG_ENDIAN +#endif