[PATCH 3/5] microblaze can be either big or little endian
Steve Bennett
steveb at workware.net.au
Sun Oct 2 23:47:43 UTC 2011
On 02/10/2011, at 4:57 AM, Mike Frysinger wrote:
> On Thursday, September 29, 2011 18:40:21 Steve Bennett wrote:
>> -#define __BYTE_ORDER __BIG_ENDIAN
>> +#ifdef _BIG_ENDIAN
>> +# define __BYTE_ORDER __BIG_ENDIAN
>> +#else
>> +# ifdef _LITTLE_ENDIAN
>> +# define __BYTE_ORDER __LITTLE_ENDIAN
>> +# endif
>> +#endif
>
> are you sure this is correct ? who defines "_BIG_ENDIAN" ?
> -mike
It's defined by the toolchain.
c.f. libc/sysdeps/linux/mips/bits/endian.h
--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au P: +61 434 921 300
E: steveb at workware.net.au F: +61 7 3391 6002
More information about the uClibc
mailing list