Subject: Re: return value in %a0 on m68k ELF (Re: CVS commit: syssrc)
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Chuck Silvers <chuq@chuq.com>
List: port-m68k
Date: 02/23/2001 05:49:59
ah, some experimentation shows you're right, it is only pointer return values
that are returned in %a0, the others are unchanged. I found that I had to
change getvbr() and I mistakenly thought I needed to do it for everything.
-Chuck
On Fri, Feb 23, 2001 at 06:13:31PM +0900, Izumi Tsutsui wrote:
> In <20010222071113.E1690B00B@cvs.netbsd.org>
> chs@netbsd.org wrote:
>
> > Log Message:
> > switch sun3 to ELF. highlight include:
> :
> > change assembly functions to return values in %a0 instead of %d0.
>
> Should we set return values into %a0 in all case?
> I guess this is required if the return value is pointer, isn't it?
> I wonder if I have to fix getdfc() and getsfc() on news68k.
> (I hope news68k is almost ELF ready but have not checked yet.)
> ---
> Izumi Tsutsui
> tsutsui@ceres.dti.ne.jp