Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc Fix a bug in cpu_switch().



details:   https://anonhg.NetBSD.org/src/rev/934c5be601ab
branches:  trunk
changeset: 504387:934c5be601ab
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Wed Feb 28 20:44:41 2001 +0000

description:
Fix a bug in cpu_switch().
Reported by Tad Hunt <tad%entrisphere.com@localhost> on port-powerpc.

diffstat:

 sys/arch/powerpc/powerpc/locore_subr.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 1291693a71a7 -r 934c5be601ab sys/arch/powerpc/powerpc/locore_subr.S
--- a/sys/arch/powerpc/powerpc/locore_subr.S    Wed Feb 28 19:22:30 2001 +0000
+++ b/sys/arch/powerpc/powerpc/locore_subr.S    Wed Feb 28 20:44:41 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore_subr.S,v 1.1 2001/02/25 20:21:53 matt Exp $     */
+/*     $NetBSD: locore_subr.S,v 1.2 2001/02/28 20:44:41 tsubai Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -240,6 +240,7 @@
        lis     4,_C_LABEL(curproc)@ha
        stw     31,_C_LABEL(curproc)@l(4)
 #endif
+       lwz     4,P_ADDR(31)
 
        mfmsr   3
        ori     3,3,PSL_EE@l            /* Now we can interrupt again */
@@ -268,7 +269,6 @@
        mtmsr   3
 
        /* indicate new pcb */
-       lwz     4,P_ADDR(31)
 #if defined(MULTIPROCESSOR)
        GET_CPUINFO(6)
        stw     4,CI_CURPCB(6)



Home | Main Index | Thread Index | Old Index