PERFORCE change 136987 for review

Randall R. Stewart rrs at FreeBSD.org
Thu Mar 6 12:32:24 UTC 2008


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

Change 136987 by rrs at rrs-mips2-jnpr on 2008/03/06 12:31:40

	Use define's PCREG_XX in setjump/longjump please.

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips/support.S#8 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/mips/support.S#8 (text+ko) ====

@@ -1411,39 +1411,39 @@
 	break	BREAK_SOVER_VAL
 	jr	ra
 	nop
-END(breakpoint)
+	END(breakpoint)
 
 LEAF(setjmp)
 	mfc0	v0, COP_0_STATUS_REG	# Later the "real" spl value!
-	STORE	s0, RSIZE * 0(a0)
-	STORE	s1, RSIZE * 1(a0)
-	STORE	s2, RSIZE * 2(a0)
-	STORE	s3, RSIZE * 3(a0)
-	STORE	s4, RSIZE * 4(a0)
-	STORE	s5, RSIZE * 5(a0)
-	STORE	s6, RSIZE * 6(a0)
-	STORE	s7, RSIZE * 7(a0)
-	STORE	s8, RSIZE * 8(a0)
-	STORE	sp, RSIZE * 9(a0)
-	STORE	ra, RSIZE * 10(a0)
-	STORE	v0, RSIZE * 11(a0)
+	STORE	s0, (RSIZE * PREG_S0)(a0)
+	STORE	s1, (RSIZE * PREG_S1)(a0)
+	STORE	s2, (RSIZE * PREG_S2)(a0)
+	STORE	s3, (RSIZE * PREG_S3)(a0)
+	STORE	s4, (RSIZE * PREG_S4)(a0)
+	STORE	s5, (RSIZE * PREG_S5)(a0)
+	STORE	s6, (RSIZE * PREG_S6)(a0)
+	STORE	s7, (RSIZE * PREG_S7)(a0)
+	STORE	s8, (RSIZE * PREG_SP)(a0)
+	STORE	sp, (RSIZE * PREG_S8)(a0)
+	STORE	ra, (RSIZE * PREG_RA)(a0)
+	STORE	v0, (RSIZE * PREG_SR)(a0)
 	jr	ra
 	li	v0, 0			# setjmp return
 END(setjmp)
 
 LEAF(longjmp)
-	LOAD	v0, RSIZE * 11(a0)
-	LOAD	ra, RSIZE * 10(a0)
-	LOAD	s0, RSIZE * 0(a0)
-	LOAD	s1, RSIZE * 1(a0)
-	LOAD	s2, RSIZE * 2(a0)
-	LOAD	s3, RSIZE * 3(a0)
-	LOAD	s4, RSIZE * 4(a0)
-	LOAD	s5, RSIZE * 5(a0)
-	LOAD	s6, RSIZE * 6(a0)
-	LOAD	s7, RSIZE * 7(a0)
-	LOAD	s8, RSIZE * 8(a0)
-	LOAD	sp, RSIZE * 9(a0)
+	LOAD	v0, (RSIZE * PREG_SR)(a0)
+	LOAD	ra, (RSIZE * PREG_RA)(a0)
+	LOAD	s0, (RSIZE * PREG_S0)(a0)
+	LOAD	s1, (RSIZE * PREG_S1)(a0)
+	LOAD	s2, (RSIZE * PREG_S2)(a0)
+	LOAD	s3, (RSIZE * PREG_S3)(a0)
+	LOAD	s4, (RSIZE * PREG_S4)(a0)
+	LOAD	s5, (RSIZE * PREG_S5)(a0)
+	LOAD	s6, (RSIZE * PREG_S6)(a0)
+	LOAD	s7, (RSIZE * PREG_S7)(a0)
+	LOAD	s8, (RSIZE * PREG_S8)(a0)
+	LOAD	sp, (RSIZE * PREG_SP)(a0)
 	mtc0	v0, COP_0_STATUS_REG	# Later the "real" spl value!
 	ITLBNOPFIX
 	jr	ra


More information about the p4-projects mailing list