Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/oea - Fix a comment.



details:   https://anonhg.NetBSD.org/src/rev/535f70aa15ee
branches:  trunk
changeset: 959779:535f70aa15ee
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Feb 24 17:35:39 2021 +0000

description:
- Fix a comment.
- rename ofwsrsave to clsrsave; we're saving / restoring the client's
  (i.e. kernel's) SRs there, not the firmware's.

diffstat:

 sys/arch/powerpc/oea/ofw_subr.S |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (45 lines):

diff -r 99e86938a194 -r 535f70aa15ee sys/arch/powerpc/oea/ofw_subr.S
--- a/sys/arch/powerpc/oea/ofw_subr.S   Wed Feb 24 16:53:00 2021 +0000
+++ b/sys/arch/powerpc/oea/ofw_subr.S   Wed Feb 24 17:35:39 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofw_subr.S,v 1.18 2021/02/24 16:53:00 thorpej Exp $    */
+/*     $NetBSD: ofw_subr.S,v 1.19 2021/02/24 17:35:39 thorpej Exp $    */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -47,10 +47,10 @@
        /* Entry trampoline used by openfirmware(). */
        .lcomm  oftramp,4,4
 
-       /* OpenFirmware SR save area */
-       .lcomm  ofwsrsave,64,4
+       /* Client SR save area */
+       .lcomm  clsrsave,64,4
 
-       /* MSR and SPRG[0-3] used in OpenFirmware */
+       /* MSR used in OpenFirmware */
        .globl  ofwmsr
        .comm   ofwmsr,4,4
 
@@ -173,8 +173,8 @@
        mtibatu 3,%r0
 #endif /* PPC_OEA */
 
-       lis     %r4,ofwsrsave@ha                /* save current SRs */
-       addi    %r4,%r4,ofwsrsave@l
+       lis     %r4,clsrsave@ha         /* save current SRs */
+       addi    %r4,%r4,clsrsave@l
        li      %r5,0
 1:     mfsrin  %r0,%r5
        stw     %r0,0(%r4)
@@ -215,8 +215,8 @@
        addi    %r5,%r5,_C_LABEL(battable)@l
        stw     %r5,CI_BATTABLE(%r4)
 
-       lis     %r4,ofwsrsave@ha        /* restore saved SRs */
-       addi    %r4,%r4,ofwsrsave@l
+       lis     %r4,clsrsave@ha         /* restore saved SRs */
+       addi    %r4,%r4,clsrsave@l
        li      %r5,0
 1:     lwz     %r0,0(%r4)
        mtsrin  %r0,%r5



Home | Main Index | Thread Index | Old Index