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 Official PPC ISA documentation has ...



details:   https://anonhg.NetBSD.org/src/rev/c7dcf93fddf5
branches:  trunk
changeset: 331060:c7dcf93fddf5
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Jul 29 19:15:47 2014 +0000

description:
Official PPC ISA documentation has no SP register, so use R1 directly.

diffstat:

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

diffs (34 lines):

diff -r f8d2d32cee40 -r c7dcf93fddf5 sys/arch/powerpc/powerpc/locore_subr.S
--- a/sys/arch/powerpc/powerpc/locore_subr.S    Tue Jul 29 17:36:06 2014 +0000
+++ b/sys/arch/powerpc/powerpc/locore_subr.S    Tue Jul 29 19:15:47 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore_subr.S,v 1.50 2013/08/23 06:22:32 matt Exp $    */
+/*     $NetBSD: locore_subr.S,v 1.51 2014/07/29 19:15:47 joerg Exp $   */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -344,9 +344,9 @@
         */
        mflr    %r0
        streg   %r0, CFRAME_LR(%r1)
-       stptru  %sp, -CALLFRAMELEN(%sp)
+       stptru  %r1, -CALLFRAMELEN(%r1)
        mfmsr   %r0
-       streg   %r0, CFRAME_R31(%sp)
+       streg   %r0, CFRAME_R31(%r1)
 
        /*
         * We need a 2nd callframe from which cpu_switchto will consume
@@ -355,9 +355,9 @@
        lis     %r8, _C_LABEL(softint_cleanup)@ha
        addi    %r8, %r8, _C_LABEL(softint_cleanup)@l
        streg   %r8, CFRAME_LR(%r1)
-       stptru  %sp, -CALLFRAMELEN(%sp)
-       streg   %r30, CFRAME_R30(%sp)
-       streg   %r31, CFRAME_R31(%sp)
+       stptru  %r1, -CALLFRAMELEN(%r1)
+       streg   %r30, CFRAME_R30(%r1)
+       streg   %r31, CFRAME_R31(%r1)
 
        GET_CPUINFO(%r7)
        mr      %r30, %r13              /* curlwp is now in r13 */



Home | Main Index | Thread Index | Old Index