Subject: Re: system call numbers problem
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 08/31/2001 15:04:49
On Fri, Aug 31, 2001 at 11:51:23PM +0200, Emmanuel Dreyfus wrote:

 > > Since your gonna have to supply your own linux_syscall.c, it is just
 > > a simple one liner to subtract 4000 there. I don't think that we
 > > need to generalize struct emul for just a single case here.
 > 
 > But linux_syscalls.c is automatically generated, and it's just an array.
 > Do you mean I should add 4000 empty entries in it gets generated?

No, he means start them at 0.  You'll have to write a
sys/arch/mips/mips/linux_syscall.c (see sys/arch/i386/i386/linux_syscall.c),
and in that file, make sure the syscall number is >= 4000, and then subtract
4000 from it before you index the syscall array.

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