Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Revert 0(sp) -> CALLFRAME_S0(sp) changes ...



details:   https://anonhg.NetBSD.org/src/rev/9826fab1e82f
branches:  trunk
changeset: 933745:9826fab1e82f
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat May 30 04:11:21 2020 +0000

description:
Revert 0(sp) -> CALLFRAME_S0(sp) changes in rev 1.4.

0(sp) is safe here even on O32 because the only callee function
mips_cp0_cause_read() doesn't take arguments, but it's caller's
responsibility to choose proper stackframe region and the name
of CALLFRAME_S0 is just confusing.  No binary change.

diffstat:

 sys/arch/mips/mips/mips_mcclock_loop.S |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 6b3a48405ed2 -r 9826fab1e82f sys/arch/mips/mips/mips_mcclock_loop.S
--- a/sys/arch/mips/mips/mips_mcclock_loop.S    Sat May 30 03:16:31 2020 +0000
+++ b/sys/arch/mips/mips/mips_mcclock_loop.S    Sat May 30 04:11:21 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_mcclock_loop.S,v 1.5 2011/03/28 12:26:59 tsutsui Exp $ */
+/* $NetBSD: mips_mcclock_loop.S,v 1.6 2020/05/30 04:11:21 tsutsui Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
 
 LEAF_NOPROFILE(mips_mcclock_loop_with_clock)
        PTR_SUBU        sp, CALLFRAME_SIZ
-       REG_S           s0, CALLFRAME_S0(sp)
+       REG_S           s0, 0(sp)
        REG_S           ra, CALLFRAME_RA(sp)
        j               2f
         move   s0, zero                # iters = 0;
@@ -64,14 +64,14 @@
        beqz            v0, 1b                  # if zero then repeat
         move           v0, s0                  # return iters
        REG_L           ra, CALLFRAME_RA(sp)
-       REG_L           s0, CALLFRAME_S0(sp)
+       REG_L           s0, 0(sp)
        j               ra
         PTR_ADDU       sp, CALLFRAME_SIZ
 END(mips_mcclock_loop_with_clock)
 
 LEAF_NOPROFILE(mips_mcclock_loop_without_clock)
        PTR_SUBU        sp, CALLFRAME_SIZ
-       REG_S           s0, CALLFRAME_S0(sp)
+       REG_S           s0, 0(sp)
        REG_S           ra, CALLFRAME_RA(sp)
        j               2f
         move           s0, zero                # iters = 0;
@@ -89,7 +89,7 @@
        beqz            v0, 1b                  # if zero then repeat
         move           v0, s0                  # return iters
        REG_L           ra, CALLFRAME_RA(sp)
-       REG_L           s0, CALLFRAME_S0(sp)
+       REG_L           s0, 0(sp)
        j               ra
         PTR_ADDU       sp, CALLFRAME_SIZ
 END(mips_mcclock_loop_without_clock)



Home | Main Index | Thread Index | Old Index