Subject: Re: 64-bit ABIs
To: None <>
From: Ben Harris <>
List: tech-userlevel
Date: 04/29/2003 19:25:47
In article <> 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

Ben Harris                                                   <>
Portmaster, NetBSD/acorn26           <URL:>