Subject: Re: SPARC syscall arguments
To: phlox <phlox-netbsd-sparc@fnop.net>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: port-sparc
Date: 07/11/2004 22:56:00
--Apple-Mail-36--364589049
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Jul 11, 2004, at 8:22 AM, phlox wrote:

> Greetings.
> Can someone clarify me on why NetBSD/sparc uses SPARC 'out' registers 
> to pass
> syscall arguments instead of using the stack ? Is it to better take 
> advantage of
> the architecture ? Does Solaris do the same ?

Because it matches the calling convention, and is much faster.  Yes, 
Solaris does the same.  So did SunOS 4.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>


--Apple-Mail-36--364589049
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFA8if0OpVKkaBm8XkRAoC2AKCNv4jnPLSOiNtm7bWnlljzIhBFcQCaAhlJ
0bnrEFlGtmMh/z0QWb0gODU=
=5e68
-----END PGP SIGNATURE-----

--Apple-Mail-36--364589049--