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]

PATCH: Load futex pointer into RDI_LP and use RSP_LP to operate on stack


On Tue, May 15, 2012 at 10:21 AM, Roland McGrath <roland@hack.frob.com> wrote:
>> FWIW, ?sysdeps/unix/sysv/linux/x86_64/lowlevellock.h has some
>> explicit register usages for stack and pointers. ?They can use
>> R*_LP instead to save a few bytes for x32.
>
> I think it's a good thing to do. ?Not just for the few bytes,
> but for consistency in what we do or don't truncate to 32 bits.
>
>

Here is a patch to load futex pointer into RDI_LP and use RSP_LP
to operate on stack.  Tested on Linux/x86-64.  OK to install.

Thanks.


-- 
H.J.

Attachment: libc-nptl-LP.patch
Description: Binary data


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