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 Don't load the SR registers on a co...



details:   https://anonhg.NetBSD.org/src/rev/bfa339f1e84b
branches:  trunk
changeset: 533094:bfa339f1e84b
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jun 21 00:46:18 2002 +0000

description:
Don't load the SR registers on a context switch.  They get switched from
the user's SR registers to the kernel's SR registers on an exception or
interrupt from user level and restored with the user's SR register when the
exception or interrupt returns back to user level.

diffstat:

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

diffs (25 lines):

diff -r fd18b1a62a2d -r bfa339f1e84b sys/arch/powerpc/powerpc/locore_subr.S
--- a/sys/arch/powerpc/powerpc/locore_subr.S    Fri Jun 21 00:17:33 2002 +0000
+++ b/sys/arch/powerpc/powerpc/locore_subr.S    Fri Jun 21 00:46:18 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore_subr.S,v 1.2 2001/02/28 20:44:41 tsubai Exp $   */
+/*     $NetBSD: locore_subr.S,v 1.3 2002/06/21 00:46:18 matt Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -287,6 +287,7 @@
 #endif
        stwcx.  5,0,6                   /* clear possible reservation */
 
+#if 0
        addic.  5,5,64
        li      6,0
        mfsr    8,KERNEL_SR             /* save kernel SR */
@@ -298,6 +299,7 @@
        mtsrin  7,6                     /* about accessibility */
        bne     1b
        mtsr    KERNEL_SR,8             /* restore kernel SR */
+#endif
        isync
 
        lwz     1,PCB_SP(4)             /* get new procs SP */



Home | Main Index | Thread Index | Old Index