Re: [PATCH v2] x86: Start removing X86_X32_ABI
From: Maciej W. Rozycki
Date: Wed Jul 08 2026 - 19:58:12 EST
On Wed, 8 Jul 2026, David Laight wrote:
> > Weird, x32 vs x64 for the Intel ISA or say n32 vs n64 for the MIPS ISA
> > are psABI variants rather than architectures. All are native, just using
> > different register usage conventions.
>
> IIRC n32 just uses the 32bit system calls.
It has its own set, as it's a 64-bit ABI and needs to pass 64-bit data
accordingly.
> So the x86-64 kernel has to have three sets of system call wrappers (etc).
Likewise a 64-bit MIPS kernel. Depending on the configuration chosen it
may have up to three sets, two 64-bit sets for n32 and n64 psABIs each and
one 32-bit set for o32 compat psABI.
I don't know what psABI Debian chose for their 64-bit MIPS ports when
they were still live, but the default for the GNU toolchain for the Linux
target has been n32.
Maciej