From f8f9c5cc7d9b074eccbcb8b2e282c7d28ccc08aa Mon Sep 17 00:00:00 2001 From: reinoud Date: Thu, 8 Sep 2011 15:13:27 +0000 Subject: Use the machdep.h and now use the md_check_syscall_opcode() --- sys/arch/usermode/dev/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/usermode/dev') 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 @@ -30,7 +30,7 @@ #include "opt_hz.h" #include -__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 #include @@ -48,6 +48,7 @@ __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.39 2011/09/08 14:47:17 reinoud Exp $"); #include #include #include +#include #include #include @@ -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) -- cgit