Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/pmax Use CALLFRAME_SP(sp) instead of CALLFRAME...



details:   https://anonhg.NetBSD.org/src/rev/de75ce5ecb37
branches:  trunk
changeset: 763633:de75ce5ecb37
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Mar 28 14:40:00 2011 +0000

description:
Use CALLFRAME_SP(sp) instead of CALLFRAME_S0(sp) to save s0.
At least PROM's _getenv() on 3MIN doesn't preserve CALLFRAME_S0(s0)
and prom_findcons() returns bogus console after mips64 merge.

XXX: I wonder if it's safe to use CALLFRAME_S0(sp) (== 0(sp)) on O32/O64..

diffstat:

 sys/arch/pmax/pmax/locore_machdep.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3b73c1177ac5 -r de75ce5ecb37 sys/arch/pmax/pmax/locore_machdep.S
--- a/sys/arch/pmax/pmax/locore_machdep.S       Mon Mar 28 13:46:14 2011 +0000
+++ b/sys/arch/pmax/pmax/locore_machdep.S       Mon Mar 28 14:40:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore_machdep.S,v 1.24 2011/02/20 07:50:25 matt Exp $ */
+/*     $NetBSD: locore_machdep.S,v 1.25 2011/03/28 14:40:00 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -168,7 +168,7 @@
 NESTED(promcall, CALLFRAME_SIZ, ra)
        PTR_SUBU sp, CALLFRAME_SIZ
        REG_S   ra, CALLFRAME_RA(sp)
-       REG_S   s0, CALLFRAME_S0(sp)
+       REG_S   s0, CALLFRAME_SP(sp)
 
        move    s0, t8                  /* save MIPS_CURLWP */
 
@@ -183,7 +183,7 @@
        move    t8, s0                  /* restore MIPS_CURLWP */
 
        REG_L   ra, CALLFRAME_RA(sp)
-       REG_L   s0, CALLFRAME_S0(sp)
+       REG_L   s0, CALLFRAME_SP(sp)
 
        jr      ra
         PTR_ADDU sp, CALLFRAME_SIZ



Home | Main Index | Thread Index | Old Index