Subject: Linux/Mips syscall shift
To: None <tech-kern@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-kern
Date: 09/15/2001 17:35:05
Hi!

Linux/Mips emulation is progressing quickly. To fix the system call
shift, I added a -4000 offset in sys/arch/mips/mips/linux_syscall.c, but
it would be nice to have a nicer implementation: I have to completely
duplicate sys/arch/mips/mips/syscall.c just to have a -4000 on two
lines. 

Adding a new field to struct emul would a cleaner way of dealing with
this. Something like e_sysshift which would be zero for everyone, and
4000 for Linux/Mips. 

Any other idea?

-- 
Emmanuel Dreyfus.  
Hiroshima 45. Tchernobyl 86. Windows 95. 
manu@netbsd.org