[PATCH 06/15] mips64: Consolidate Linux sysdep.h
Joseph Myers
joseph@codesourcery.com
Mon Feb 10 22:48:00 GMT 2020
On Mon, 10 Feb 2020, Adhemerval Zanella wrote:
> The mips64 Linux syscall macros only differs argument type and
> the requirement of zero-extending values on n32. The headers
It's sign-extension, not zero-extension (because that's the
architecturally-defined rule for how 32-bit values must be represented in
64-bit registers for 32-bit instructions to work correctly - though
current Linux kernels ensure syscall arguments are properly extended
before they reach any C functions in the kernel).
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list