Subject: Re: 64-bit ABIs
To: Ben Harris <bjh21@netbsd.org>
From: Steve Woodford <scw@netbsd.org>
List: tech-userlevel
Date: 04/29/2003 20:21:59
On Tue, 29 Apr 2003, Ben Harris wrote:

> 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()?

I'm not an authority on these matters, but I'm pretty sure that the sh5
ABI requires 32-bit values to be correctly sign-extended when held in
registers, regardless of the signedness of their type. I've certainly had
to tweak some sh5 asm to make sure unsigned 32-bit results are still
sign-extended.

You could send me your patches so I can try them on sh5 to see what
breaks, if anything. ;-)

Cheers, Steve