PATCH: Use RXX_LP, LP_OP, LP_SIZE and ASM_ADDR in nptl

Andreas Jaeger aj@suse.com
Sat Mar 17 19:08:00 GMT 2012


On 03/17/2012 05:36 PM, H.J. Lu wrote:
> Hi,
>
> This patch changes nptl x86-64 assembly codes to use RXX_LP, LP_OP, LP_SIZE
> and ASM_ADDR on long and pointers. It uses RXX_LP when operating on
> registers which contain long and pointers.  It uses LP_OP when
> operating memory operands which contain long and pointers.  It uses
> LP_SIZE and ASM_ADD for pointer operations.

Seeing these patches, I'm concerned that people working on x86-64 will 
break x32 with not using all the macros.

IMO it makes sense to document somewhere - perhaps in the glibc wiki? - 
how to write x86-64 code for glibc so that it works on x32 as well.

HJ, would this be possible?

Andreas
-- 
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
    GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
     GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



More information about the Libc-alpha mailing list