Module Name: src Committed By: christos Date: Sat May 5 19:44:02 UTC 2012
Modified Files: src/sys/kern: sys_syscall.c Log Message: use sy_call() so that l->l_sysent gets set, so that we can autoload modules that define new syscalls properly. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/kern/sys_syscall.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/sys_syscall.c diff -u src/sys/kern/sys_syscall.c:1.9 src/sys/kern/sys_syscall.c:1.10 --- src/sys/kern/sys_syscall.c:1.9 Tue Apr 29 02:53:03 2008 +++ src/sys/kern/sys_syscall.c Sat May 5 15:44:02 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_syscall.c,v 1.9 2008/04/29 06:53:03 martin Exp $ */ +/* $NetBSD: sys_syscall.c,v 1.10 2012/05/05 19:44:02 christos Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -30,9 +30,10 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sys_syscall.c,v 1.9 2008/04/29 06:53:03 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sys_syscall.c,v 1.10 2012/05/05 19:44:02 christos Exp $"); #include <sys/syscall_stats.h> +#include <sys/syscallvar.h> /* * MI indirect system call support. @@ -74,7 +75,7 @@ SYS_SYSCALL(struct lwp *l, const struct return ENOSYS; if (__predict_true(!p->p_trace_enabled)) - return callp->sy_call(l, &uap->args, rval); + return sy_call(callp, l, &uap->args, rval); narg = callp->sy_narg; #ifdef NETBSD32_SYSCALL @@ -85,7 +86,7 @@ SYS_SYSCALL(struct lwp *l, const struct error = trace_enter(code, TRACE_ARGS, narg); if (__predict_false(error != 0)) return error; - error = callp->sy_call(l, &uap->args, rval); + error = sy_call(callp, l, &uap->args, rval); trace_exit(code, rval, error); return error;