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 USPRG0 is only on BOOKE



details:   https://anonhg.NetBSD.org/src/rev/15410930a232
branches:  trunk
changeset: 766152:15410930a232
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jun 17 05:11:48 2011 +0000

description:
USPRG0 is only on BOOKE

diffstat:

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

diffs (36 lines):

diff -r e4eb94b79c01 -r 15410930a232 sys/arch/powerpc/powerpc/locore_subr.S
--- a/sys/arch/powerpc/powerpc/locore_subr.S    Fri Jun 17 05:10:53 2011 +0000
+++ b/sys/arch/powerpc/powerpc/locore_subr.S    Fri Jun 17 05:11:48 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore_subr.S,v 1.42 2011/06/05 16:52:26 matt Exp $    */
+/*     $NetBSD: locore_subr.S,v 1.43 2011/06/17 05:11:48 matt Exp $    */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -189,7 +189,7 @@
        SWITCHFRAME_SAVE(%r1)           /* save USER_SR, CR, R2, non-volatile */
        ldptr   %r4,L_PCB(%r30)         /* put PCB addr in r4 */
        streg   %r1,PCB_SP(%r4)         /* store old lwp's SP */
-#ifdef PCB_USPRG0
+#if defined(PPC_BOOKE)
        mfspr   %r9,SPR_USPRG0
        streg   %r9,PCB_USPRG0(%r4)     /* save in PCB, not switchframe. */
 #endif
@@ -234,7 +234,7 @@
         */
        ldreg   %r1,PCB_SP(%r4)         /* get new lwp's SP */
        SWITCHFRAME_RESTORE(%r1)        /* get non-volatile, CR, R2, USER_SR */
-#ifdef PCB_USPRG0
+#if defined(PPC_BOOKE)
        ldreg   %r9,PCB_USPRG0(%r4)
        mtspr   SPR_USPRG0,%r9
 #endif
@@ -360,7 +360,7 @@
        mr      %r31, %r1
        ldptr   %r5, L_PCB(%r30)        /* put PCB addr in r5 */
        streg   %r1, PCB_SP(%r5)        /* store old lwp's SP */
-#ifdef PCB_USPRG0
+#if defined(PPC_BOOKE)
        mfspr   %r9,SPR_USPRG0
        streg   %r9,PCB_USPRG0(%r5)     /* save in PCB, not switchframe. */
 #endif



Home | Main Index | Thread Index | Old Index