Subject: Re: netbsd32 compatibility
To: Quentin Garnier <cube@cubidou.net>
From: Frank van der Linden <fvdl@netbsd.org>
List: tech-kern
Date: 06/06/2005 00:13:16
--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 06, 2005 at 12:12:45AM +0200, Quentin Garnier wrote:
> I have them in my local tree, as a few other syscalls.  I don't remember
> exactly for that family, but sometimes implementing a syscall in
> compat_netbsd32 requires changes in the organisation of code for the
> normal path of the syscall.  It is the case for kevent(2), for example.
>=20
> I wanted to have them all before I started committing, but I've been
> lagging a bit on that front.  I might just commit the ones I have as
> well.

Go ahead and commit what you have.. provided that you tested it at least
lightly, of course :)

Virtually all system calls aren't too hard to emulate, except for the SA
ones. SA copies structures to thread stacks, and these structures contain
fields that are different in size for 32/64. Which either means a bunch
of ugly conditionals in the SA code, or a big piece of code duplication
for the 32bit version.

- Frank

--PNTmBPCT7hxwcZjr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iD8DBQFCo3j8+kPCkesgSF0RAij0AJ9TZxbuMXgc2PI3upw+MXSJkXyMKQCeOLOr
cVgcONJF6/ucuXbR9b2Gwkg=
=P4ZO
-----END PGP SIGNATURE-----

--PNTmBPCT7hxwcZjr--