summaryrefslogtreecommitdiff
path: root/sys/arch/usermode/dev/cpu.c
diff options
context:
space:
mode:
authorreinoud <reinoud@NetBSD.org>2011-09-08 15:13:27 +0000
committerreinoud <reinoud@NetBSD.org>2011-09-08 15:13:27 +0000
commitf8f9c5cc7d9b074eccbcb8b2e282c7d28ccc08aa (patch)
treeb6b644a79e5fde6b74d093c73968fb2f62e7a63d /sys/arch/usermode/dev/cpu.c
parentf00bd0bcde3f25b66e5fee24e393a427c191e197 (diff)
Use the machdep.h and now use the md_check_syscall_opcode()
Diffstat (limited to 'sys/arch/usermode/dev/cpu.c')
-rw-r--r--sys/arch/usermode/dev/cpu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/usermode/dev/cpu.c b/sys/arch/usermode/dev/cpu.c
index b414b1b6f75..c820fa0e10c 100644
--- a/sys/arch/usermode/dev/cpu.c
+++ b/sys/arch/usermode/dev/cpu.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.39 2011/09/08 14:47:17 reinoud Exp $ */
+/* $NetBSD: cpu.c,v 1.40 2011/09/08 15:13:27 reinoud Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
@@ -30,7 +30,7 @@
#include "opt_hz.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.39 2011/09/08 14:47:17 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.40 2011/09/08 15:13:27 reinoud Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -48,6 +48,7 @@ __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.39 2011/09/08 14:47:17 reinoud Exp $");
#include <machine/cpu.h>
#include <machine/mainbus.h>
#include <machine/pcb.h>
+#include <machine/machdep.h>
#include <machine/thunk.h>
#include <uvm/uvm_extern.h>
@@ -297,7 +298,6 @@ printf("return of trampoline func, switching to userland\n");
panic("%s: shouldn't return", __func__);
}
-extern void syscall(void);
void
cpu_lwp_fork(struct lwp *l1, struct lwp *l2, void *stack, size_t stacksize,
void (*func)(void *), void *arg)