Date: Tue, 28 Nov 2006 18:21:21 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 110626 for review Message-ID: <200611281821.kASILLmH047909@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=110626 Change 110626 by gonzo@gonzo_hq on 2006/11/28 18:21:02 o Use s0 instead of v1 to store old curbrk value since v1 is not guaranteed to stay untouched during function calls (and it will be changed after syscall for sure). Affected files ... .. //depot/projects/mips2/src/lib/libc/mips/sys/sbrk.S#3 edit Differences ... ==== //depot/projects/mips2/src/lib/libc/mips/sys/sbrk.S#3 (text+ko) ==== @@ -55,12 +55,12 @@ .cpload t9 .set reorder #endif - lw v1, _C_LABEL(__curbrk) + lw s0, _C_LABEL(__curbrk) li v0, SYS_break - addu a0, a0, v1 # compute current break + addu a0, a0, s0 # compute current break syscall bne a3, zero, 1f - move v0, v1 # return old val of curbrk from above + move v0, s0 # return old val of curbrk from above sw a0, _C_LABEL(__curbrk) # save current val of curbrk from above j ra 1:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611281821.kASILLmH047909>