Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Use sy_invoke
details: https://anonhg.NetBSD.org/src/rev/84463f472eb1
branches: trunk
changeset: 787616:84463f472eb1
user: matt <matt%NetBSD.org@localhost>
date: Wed Jun 26 17:18:52 2013 +0000
description:
Use sy_invoke
diffstat:
sys/arch/x86/x86/syscall.c | 17 +++--------------
1 files changed, 3 insertions(+), 14 deletions(-)
diffs (38 lines):
diff -r a5784739d9c7 -r 84463f472eb1 sys/arch/x86/x86/syscall.c
--- a/sys/arch/x86/x86/syscall.c Wed Jun 26 17:10:23 2013 +0000
+++ b/sys/arch/x86/x86/syscall.c Wed Jun 26 17:18:52 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.11 2012/07/10 21:18:07 dsl Exp $ */
+/* $NetBSD: syscall.c,v 1.12 2013/06/26 17:18:52 matt Exp $ */
/*-
* Copyright (c) 1998, 2000, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.11 2012/07/10 21:18:07 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.12 2013/06/26 17:18:52 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -153,18 +153,7 @@
goto bad;
}
#endif
- if (!__predict_false(p->p_trace_enabled)
- || __predict_false(callp->sy_flags & SYCALL_INDIRECT)
- || (error = trace_enter(code, args, callp->sy_narg)) == 0) {
- rval[0] = 0;
- rval[1] = 0;
- error = sy_call(callp, l, args, rval);
- }
-
- if (__predict_false(p->p_trace_enabled)
- && !__predict_false(callp->sy_flags & SYCALL_INDIRECT)) {
- trace_exit(code, rval, error);
- }
+ error = sy_invoke(callp, l, args, rval, code);
if (__predict_true(error == 0)) {
X86_TF_RAX(frame) = rval[0];
Home |
Main Index |
Thread Index |
Old Index