Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx apply the fix from the powerpc port....



details:   https://anonhg.NetBSD.org/src/rev/581916d2548a
branches:  trunk
changeset: 532905:581916d2548a
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jun 17 21:08:56 2002 +0000

description:
apply the fix from the powerpc port. this is almost a copy of powerpc/trap.c
and needs to be refactored.

diffstat:

 sys/arch/powerpc/ibm4xx/trap.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r 99863e3eafee -r 581916d2548a sys/arch/powerpc/ibm4xx/trap.c
--- a/sys/arch/powerpc/ibm4xx/trap.c    Mon Jun 17 21:07:40 2002 +0000
+++ b/sys/arch/powerpc/ibm4xx/trap.c    Mon Jun 17 21:08:56 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.4 2002/06/17 16:33:14 christos Exp $        */
+/*     $NetBSD: trap.c,v 1.5 2002/06/17 21:08:56 christos Exp $        */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -301,7 +301,7 @@
                        }
 
 
-                       if ((error = trace_enter(p, code, args, rval)) != 0)
+                       if ((error = trace_enter(p, code, params, rval)) != 0)
                                goto syscall_bad;
 
                        rval[0] = 0;
@@ -331,11 +331,10 @@
                                frame->cr |= 0x10000000;
                                break;
                        }
-               }
-               KERNEL_PROC_UNLOCK(p);
+                       KERNEL_PROC_UNLOCK(p);
 
-               trace_exit(p, code, args, rval, error);
-
+                       trace_exit(p, code, args, rval, error);
+               }
                break;
 
        case EXC_AST|EXC_USER:



Home | Main Index | Thread Index | Old Index