Subject: syscall/__syscall vs. emulations
To: None <tech-kern@NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 07/12/2005 21:16:07
While looking for something else, I stumbled accross the handling for
syscall(2) and __syscall(2). At a cursory glance it seems that all archs
besides powerpc and amd64 special-case the (NetBSD) SYS_syscall and
SYS___syscall codes - without checking the processes' current emulation.
This is wrong, isn't it?

I might have misread the archs with __HAVE_MINIMAL_EMUL.

Btw: doesn't powerpc have minimal emul too? It looked like it, but it does
not define __HAVE_MINIMAL_EMUL.

Martin