Module Name:    src
Committed By:   tsutsui
Date:           Sat May 30 04:11:22 UTC 2020

Modified Files:
        src/sys/arch/mips/mips: mips_mcclock_loop.S

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/mips/mips/mips_mcclock_loop.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/mips/mips_mcclock_loop.S
diff -u src/sys/arch/mips/mips/mips_mcclock_loop.S:1.5 src/sys/arch/mips/mips/mips_mcclock_loop.S:1.6
--- src/sys/arch/mips/mips/mips_mcclock_loop.S:1.5	Mon Mar 28 12:26:59 2011
+++ src/sys/arch/mips/mips/mips_mcclock_loop.S	Sat May 30 04:11:21 2020
@@ -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 @@ LEAF_NOPROFILE(mips_mcclock_loop_with_cl
 	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 @@ LEAF_NOPROFILE(mips_mcclock_loop_without
 	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)

Reply via email to