Thread (43 messages) 43 messages, 4 authors, 2022-02-01

Re: [PATCH V4 08/17] riscv: compat: syscall: Add compat_sys_call_table implementation

From: Arnd Bergmann <arnd@arndb.de>
Date: 2022-01-30 11:32:58
Also in: linux-arm-kernel, linux-mips, linux-riscv, linux-s390, linuxppc-dev, lkml, sparclinux

On Sun, Jan 30, 2022 at 6:54 AM Guo Ren [off-list ref] wrote:
On Sun, Jan 30, 2022 at 6:41 AM Arnd Bergmann [off-list ref] wrote:
quoted
I would make these endian-specific, and reverse them on big-endian
architectures. That way it
should be possible to share them across all compat architectures
without needing the override
option.
I hope it could be another patch. Because it's not clear to
_LITTLE_ENDIAN definition in archs.

eg: Names could be __ORDER_LITTLE_ENDIAN__ CPU_LITTLE_ENDIAN
SYS_SUPPORTS_LITTLE_ENDIAN __LITTLE_ENDIAN

riscv is little-endian, but no any LITTLE_ENDIAN definition.

So let's keep them in the patch, first, Thx
The correct way to do it is to check for CONFIG_CPU_BIG_ENDIAN,
which works on all architectures. Since nothing else selects the
__ARCH_WANT_COMPAT_* symbols, there is also no risk for
regressions, so just use this and leave the #ifndef compat_arg_u64
check in place.

      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