Module Name: src
Committed By: skrll
Date: Sat Jul 13 10:29:37 UTC 2013
Modified Files:
src/sys/arch/hppa/hppa: trap.c
Log Message:
Use sy_invoke
To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/sys/arch/hppa/hppa/trap.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/arch/hppa/hppa/trap.c
diff -u src/sys/arch/hppa/hppa/trap.c:1.101 src/sys/arch/hppa/hppa/trap.c:1.102
--- src/sys/arch/hppa/hppa/trap.c:1.101 Mon Apr 23 11:25:03 2012
+++ src/sys/arch/hppa/hppa/trap.c Sat Jul 13 10:29:37 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.101 2012/04/23 11:25:03 skrll Exp $ */
+/* $NetBSD: trap.c,v 1.102 2013/07/13 10:29:37 skrll Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.101 2012/04/23 11:25:03 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.102 2013/07/13 10:29:37 skrll Exp $");
/* #define INTRDEBUG */
/* #define TRAPDEBUG */
@@ -1237,17 +1237,8 @@ syscall(struct trapframe *frame, int *ar
}
#endif
- error = 0;
- if (__predict_false(p->p_trace_enabled)) {
- error = trace_enter(code, args, callp->sy_narg);
- if (error)
- goto out;
- }
+ error = sy_invoke(callp, l, args, rval, code);
- rval[0] = 0;
- rval[1] = 0;
- error = sy_call(callp, l, args, rval);
-out:
switch (error) {
case 0:
l = curlwp; /* changes on exec() */
@@ -1286,9 +1277,6 @@ out:
break;
}
- if (__predict_false(p->p_trace_enabled))
- trace_exit(code, rval, error);
-
userret(l, frame->tf_iioq_head, 0);
#ifdef DIAGNOSTIC