This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Use RXX_LP, LP_OP, LP_SIZE and ASM_ADDR in nptl
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Andreas Jaeger <aj at suse dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 17 Mar 2012 12:32:58 -0700
- Subject: Re: PATCH: Use RXX_LP, LP_OP, LP_SIZE and ASM_ADDR in nptl
- References: <20120317163625.GA16465@intel.com><4F64E0F4.8060406@suse.com>
On Sat, Mar 17, 2012 at 12:07 PM, Andreas Jaeger <aj@suse.com> wrote:
> 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.
We need to be careful when writing x86-64 assembly codes.
> 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?
>
I will give it a try.
--
H.J.