[Skiboot] [RFC] Add support for glibc style endianess detection

Akshay Adiga akshay.adiga at linux.vnet.ibm.com
Fri May 5 03:25:56 AEST 2017



On 05/04/2017 08:04 PM, Murilo Opsfelder Ara├║jo wrote:
> On 05/03/2017 05:07 PM, Akshay Adiga wrote:
>> CCAN defines HAVE_LITTLE_ENDIAN or HAVE_BIG_ENDIAN to endianess of the
>> system and code developed on top of glibc expect __BYTE_ORDER to
>> tell the endianess.
>>
>> Suggested-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
>> Signed-off-by: Akshay Adiga <akshay.adiga at linux.vnet.ibm.com>
>> ---
>> Other attempt:
>> 1) when named as include/endian.h, conflicted with host include
>> files (gcov build failed).
>>
>>  include/glibc_endian.h | 36 ++++++++++++++++++++++++++++++++++++
>>  include/skiboot.h      |  2 +-
>>  2 files changed, 37 insertions(+), 1 deletion(-)
>>  create mode 100644 include/glibc_endian.h
>>
>> diff --git a/include/glibc_endian.h b/include/glibc_endian.h
>> new file mode 100644
>> index 0000000..8b1ce5f
>> --- /dev/null
>> +++ b/include/glibc_endian.h
>> @@ -0,0 +1,36 @@
>> +/* Copyright 2013-2014 IBM Corp.
>
> Shouldn't it be 2017?
>
Thanks, I will correct the year.



More information about the Skiboot mailing list