Thread (20 messages) 20 messages, 6 authors, 2017-06-08

Re: CPU_BIG_ENDIAN in generic code

From: Arnd Bergmann <arnd@arndb.de>
Date: 2017-06-08 14:37:03
Also in: linux-arch, linux-serial, lkml, sparclinux

On Thu, Jun 8, 2017 at 4:02 PM, David Miller [off-list ref] wrote:
From: Arnd Bergmann <arnd@arndb.de>
Date: Thu, 8 Jun 2017 10:01:59 +0200
quoted
I would also suggest adding a sanity check like
Hmm, but this will kill the build for non-fixed endian architectures
won't it?
I think only xtensa, all others already define CONFIG_CPU_BIG_ENDIAN
conditionally, and include the right header depending on that.

For xtensa, the decision is apparently made by the toolchain, and the
kernel just detects the macros set by the compiler, but that is slightly
fragile because it prevents us from making Kconfig decisions based on
endianess.

       Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help