This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 06/15] mips64: Consolidate Linux sysdep.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]