Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern use sy_call() so that l->l_sysent gets set, so that...
details: https://anonhg.NetBSD.org/src/rev/4acac728f5d6
branches: trunk
changeset: 779130:4acac728f5d6
user: christos <christos%NetBSD.org@localhost>
date: Sat May 05 19:44:02 2012 +0000
description:
use sy_call() so that l->l_sysent gets set, so that we can autoload modules
that define new syscalls properly.
diffstat:
sys/kern/sys_syscall.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 6d655ccd4be4 -r 4acac728f5d6 sys/kern/sys_syscall.c
--- a/sys/kern/sys_syscall.c Sat May 05 19:37:37 2012 +0000
+++ b/sys/kern/sys_syscall.c Sat May 05 19:44:02 2012 +0000
@@ -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 @@
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 @@
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;
Home |
Main Index |
Thread Index |
Old Index