Date: Tue, 18 Mar 2008 14:01:26 GMT From: "Randall R. Stewart" <rrs@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 138008 for review Message-ID: <200803181401.m2IE1QSO058492@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=138008 Change 138008 by rrs@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803181401.m2IE1QSO058492>