Subject: Re: 64-bit ABIs
To: None <scw@netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: tech-userlevel
Date: 04/29/2003 19:25:47
In article <Pine.NEB.4.53.0304291741010.699@oor-wullie.mctavish.co.uk> you write:
>On Tue, 29 Apr 2003, David Laight wrote:
>
>> > (64-bit MIPS keeps 32-bit values in registers sign-extended into the
>> > upper 32-bits.  so, a uint32_t would still be sign extended in the
>> > register.  64-bit values are, of course, kept as 64-bit values.  8-)
>>
>> That could bring some bugs out of the woodwork..
>
>They're out and squished already (for most of the kernel, at least)
>courtesy of the SH5 port, where registers are always 64-bits regardless
>of the ABI.

Does that mean that SH5 sign-extends uint32_ts passed as function arguments
or results, so that I can't just change the types of inet_addr() and
inet_makeaddr()?

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/acorn26           <URL:http://www.netbsd.org/Ports/acorn26/>