Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/vax finish previous; it would be nice if people...



details:   https://anonhg.NetBSD.org/src/rev/fa1467b95d77
branches:  trunk
changeset: 533162:fa1467b95d77
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jun 23 03:00:19 2002 +0000

description:
finish previous; it would be nice if people were to use the lovely
cross compiling mechanisms we have when making sweeping changes...

diffstat:

 sys/arch/vax/vax/trap.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r f7d394170113 -r fa1467b95d77 sys/arch/vax/vax/trap.c
--- a/sys/arch/vax/vax/trap.c   Sun Jun 23 01:36:07 2002 +0000
+++ b/sys/arch/vax/vax/trap.c   Sun Jun 23 03:00:19 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.71 2002/06/17 16:33:20 christos Exp $     */
+/*     $NetBSD: trap.c,v 1.72 2002/06/23 03:00:19 mrg Exp $     */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -344,7 +344,6 @@
        struct trapframe *exptr;
        struct proc *p = curproc;
 
-
 #ifdef TRAPDEBUG
 if(startsysc)printf("trap syscall %s pc %lx, psl %lx, sp %lx, pid %d, frame %p\n",
               syscallnames[frame->code], frame->pc, frame->psl,frame->sp,
@@ -379,7 +378,7 @@
                        goto bad;
        }
 
-       if ((error = trace_enter(p, code, args, rval)) != 0)
+       if ((err = trace_enter(p, frame->code, args, rval)) != 0)
                goto bad;
 
        err = (*callp->sy_call)(curproc, args, rval);
@@ -409,13 +408,12 @@
                break;
 
        default:
-       bad:
                exptr->r0 = err;
                exptr->psl |= PSL_C;
                break;
        }
 
-       trace_exit(p, code, args, rval, error);
+       trace_exit(p, frame->code, args, rval, err);
 
        userret(p, frame, oticks);
 }



Home | Main Index | Thread Index | Old Index