Subject: Re: system call numbers problem
To: Jarommr Dolecek <jdolecek@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-kern
Date: 08/27/2001 21:43:30
> Emmanuel Dreyfus wrote:
> > I started working on Linux/Mips emulation, and I face an unexpected
> > problem: The system call numbers start at 4000 for Linux/MIPS. This
> > confuses the makesyscalls.sh script, which expects the first syscall to
> > be at zero.
> The most suitable thing to do would prolly be to number the syscalls
> from zero in syscalls.master, and substract the 4000 in syscall
> dispatch code. (And add a comment in appropriate syscalls.master
> that the syscalls dispatch code remaps the syscall numbers).

The cleanest way I hink about is to add a first_syscall field in struct
emul, which would be zero for all emuls, and 4000 for Linux/Mips, and
use this in syscall dispatch.

Any simplier idea?

--=20
Emmanuel Dreyfus. =20
Vous avez deplac=E9 la souris.=20
Windows NT doit maintenant redemarrer pour valider les modifications.
manu@netbsd.org