Subject: Re: Linux/Mips syscall shift
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-kern
Date: 09/16/2001 01:12:47
On Sat, 15 Sep 2001, Emmanuel Dreyfus wrote:

: > I.e. the point of splitting them up like that is to avoid if() statements
: > in the native syscall path.
:
: Then is it acceptable to do it a bit less elegant with #ifdef's?

: that would turn into syscall or linux_syscall depending on a macro.
: linux_syscall.c is then just a #define and #include syscall.c

This would be the most appropriate method, since it won't impact native
syscalls.  And it's limited to mips, as it should be (...whereas changing
struct emul affects all archs for a change that is essentially a
Limux/mips'ism).

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi NetBSD:  Run with it.
-- NetBSD 1.5.2 available on CD-ROM soon!  --  http://www.wasabisystems.com/