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

Murilo Opsfelder Ara├║jo muriloo at linux.vnet.ibm.com
Fri May 5 00:34:42 AEST 2017


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?

-- 
Murilo



More information about the Skiboot mailing list