Date: Thu, 1 Feb 2007 15:56:17 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 113842 for review Message-ID: <200702011556.l11FuHPm053994@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113842 Change 113842 by gonzo@gonzo_jeeves on 2007/02/01 15:56:14 o Preserve s0 value in stack through function call as ABI requires. Affected files ... .. //depot/projects/mips2/src/lib/libc/mips/sys/sbrk.S#4 edit Differences ... ==== //depot/projects/mips2/src/lib/libc/mips/sys/sbrk.S#4 (text+ko) ==== @@ -55,6 +55,8 @@ .cpload t9 .set reorder #endif + subu sp, sp, 4 + sw s0, 0(sp) lw s0, _C_LABEL(__curbrk) li v0, SYS_break addu a0, a0, s0 # compute current break @@ -62,6 +64,8 @@ bne a3, zero, 1f move v0, s0 # return old val of curbrk from above sw a0, _C_LABEL(__curbrk) # save current val of curbrk from above + lw s0, 0(sp) + addu sp, sp, 4 j ra 1: la t9, _C_LABEL(__cerror)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702011556.l11FuHPm053994>