PERFORCE change 138008 for review

Randall R. Stewart rrs at FreeBSD.org
Tue Mar 18 14:01:27 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=138008

Change 138008 by rrs at rrs-mips2-jnpr on 2008/03/18 14:01:20

	Thinking about it, we need to subtract the stack back out
	       BEFORE we save it so we save the correct value. Do this
	       all right before the return to ra.

Affected files ...

.. //depot/projects/mips2-jnpr/src/lib/libc/mips/gen/_setjmp.S#6 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/lib/libc/mips/gen/_setjmp.S#6 (text+ko) ====

@@ -74,11 +74,11 @@
 	sw	s5, (_JB_REG_S5 * SZREG)(a0)
 	sw	s6, (_JB_REG_S6 * SZREG)(a0)
 	sw	s7, (_JB_REG_S7 * SZREG)(a0)
-	sw	sp, (_JB_REG_SP * SZREG)(a0)
 	sw	s8, (_JB_REG_S8 * SZREG)(a0)
 #ifdef __ABICALLS__
-	addu	sp, sp, CALLFRAME_SIZ	# allocate stack frame
+	addu	sp, sp, CALLFRAME_SIZ	# un-allocate the stack frame
 #endif	
+	sw	sp, (_JB_REG_SP * SZREG)(a0)
 	j	ra
 	move	v0, zero
 END(_setjmp)


More information about the p4-projects mailing list