Subject: Re: adding system calls-
To: Frank van der Linden <>
From: David Stanhope <>
List: tech-kern
Date: 03/17/2000 02:03:12
don't know if this is your problem or not, but one issue I had using a lkm
to add a
system call, is that there different system call tables for a.out and elf
executables and
the standard lkm stuff only changes the elf tables, and my test programs
were compiled
for a.out.
Dave Stanhope

----- Original Message -----
From: "Frank van der Linden" <>
To: "Andy Sporner" <>
Cc: <>
Sent: Friday, March 17, 2000 1:02 AM
Subject: Re: adding system calls-

> On Wed, Mar 15, 2000 at 02:40:49PM -0500, Andy Sporner wrote:
> > I have added an entry (#304) to syscalls.master, regened
> > with, make cleaned, make depend, and
> > make to build the kernel.  All this goes well and I moved
> > the kernel to /netbsd.  I also went into /usr/src/sys and
> > did a make includes.
> >
> > I rebooted the kernel and ran my program which uses
> > the syscall interface and I get "bad system call".  I have
> > looked at the header files and appears to be correct.
> Looks like you made the right moves.. maybe you should provide
> some more details (i.e. include diffs for the regenerated files,
> and your userland code).
> - Frank