Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hppa/hppa Use sy_invoke



details:   https://anonhg.NetBSD.org/src/rev/cc353ab71e61
branches:  trunk
changeset: 787916:cc353ab71e61
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jul 13 10:29:37 2013 +0000

description:
Use sy_invoke

diffstat:

 sys/arch/hppa/hppa/trap.c |  18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)

diffs (47 lines):

diff -r 44befaa56945 -r cc353ab71e61 sys/arch/hppa/hppa/trap.c
--- a/sys/arch/hppa/hppa/trap.c Sat Jul 13 10:26:30 2013 +0000
+++ b/sys/arch/hppa/hppa/trap.c Sat Jul 13 10:29:37 2013 +0000
@@ -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 @@
        }
 #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 @@
                break;
        }
 
-       if (__predict_false(p->p_trace_enabled))
-               trace_exit(code, rval, error);
-
        userret(l, frame->tf_iioq_head, 0);
 
 #ifdef DIAGNOSTIC



Home | Main Index | Thread Index | Old Index