diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-02-11 23:07:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-02-11 23:07:29 +0000 |
commit | 093c867c6043e3af2f4b845860e1e59452286937 (patch) | |
tree | 3225d278651946319a6b9686cf843a1f1645c4ef /sys/arch/sparc64 | |
parent | 6b3c6d9f392a03c2ed83b3487ed43f174e081efb (diff) |
__syscall() is no longer neccessary since the system calls which needed
it are now unpadded
ok kettenis guenther
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/trap.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c index 7321a66f9d1..09723a695ee 100644 --- a/sys/arch/sparc64/sparc64/trap.c +++ b/sys/arch/sparc64/sparc64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.114 2023/01/24 07:26:34 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.115 2023/02/11 23:07:28 deraadt Exp $ */ /* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */ /* @@ -1133,19 +1133,12 @@ syscall(struct trapframe *tf, register_t code, register_t pc) * The first six system call arguments are in the six %o registers. * Any arguments beyond that are in the `argument extension' area * of the user's stack frame (see <machine/frame.h>). - * - * Check for ``special'' codes that alter this, namely syscall and - * __syscall. These both pass a syscall number in the first argument - * register, so the other arguments are just shifted down, possibly - * pushing one off the end into the extension area. This happens - * with mmap() and mquery() used via __syscall(). */ ap = &tf->tf_out[0]; nap = 6; switch (code) { case SYS_syscall: - case SYS___syscall: indirect = code; code = *ap++; nap--; |