Remove some gratuitous differences between syscall_fancy and syscall_plain.
This commit is contained in:
parent
5f2b082001
commit
7cfa26e69a
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: syscall.c,v 1.27 2007/10/17 19:53:02 garbled Exp $ */
|
/* $NetBSD: syscall.c,v 1.28 2007/10/27 18:41:57 dsl Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.27 2007/10/17 19:53:02 garbled Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.28 2007/10/27 18:41:57 dsl Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -213,8 +213,8 @@ syscall_fancy(struct trapframe *frame)
|
||||||
|
|
||||||
code = frame->tf_rax;
|
code = frame->tf_rax;
|
||||||
callp = p->p_emul->e_sysent;
|
callp = p->p_emul->e_sysent;
|
||||||
argp = &args[0];
|
|
||||||
argoff = 0;
|
argoff = 0;
|
||||||
|
argp = &args[0];
|
||||||
|
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case SYS_syscall:
|
case SYS_syscall:
|
||||||
|
@ -228,8 +228,8 @@ syscall_fancy(struct trapframe *frame)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
code &= (SYS_NSYSENT - 1);
|
code &= (SYS_NSYSENT - 1);
|
||||||
callp += code;
|
callp += code;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue