Skip to content

powerpc: fixes for 32-bit little-endian processes

Will Springer linuxppc-dev 1 version New

Get series with b4
b4 am 2191723.ElGaqSPkdT@sheen

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2powerpc: use kernel endianness in MSR in 32-bit signal handlerarch/powerpc/kernel/signal_32.c+2 -10 replies
2/2powerpc/compat_sys: swap hi/lo parts of 64-bit syscall args in LE modearch/powerpc/kernel/sys_ppc32.c+28 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] powerpc: fixes for 32-bit little-endian processes

These are a couple small fixes that enable 32-bit little endian ("ppcle") processes to run on a ppc64le kernel. Currently this is of interest for the purposes of emulating ia32 programs with native userland assistance via box86[1] (see PR#279 for initial ppc support), but a standalone userland is functional, and may be used to complement a future ppcle kernel port. We (those of us working on the userland effort in the void-ppc project[2]) hope to come up with an ABI proposal to submit to submit to the libc projects as a new port.

Cheers to Christophe Leroy and Michael Ellerman for converting the ppc vDSO to C, and Michael in particular for tracking down a small issue with it on ppcle, meaning the 32-bit LE vDSO gets to be functional instead of half-broken with the old asm. (Sorry it took a minute to push these patches, protonmail would not cooperate with git-send-email and then I took off for the holidays.)

Cheers,
Will Springer [she/her]

[1]: https://github.com/ptitSeb/box86
[2]: https://voidlinux-ppc.org/

Joseph J Allen (1):
powerpc: use kernel endianness in MSR in 32-bit signal handler

Will Springer (1):
powerpc/compat_sys: swap hi/lo parts of 64-bit syscall args in LE mode

 arch/powerpc/kernel/signal_32.c |  3 +-
 arch/powerpc/kernel/sys_ppc32.c | 49 +++++++++++++++++++--------------
 2 files changed, 30 insertions(+), 22 deletions(-)
Signature · 1 line
2.29.2