PERFORCE change 110626 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Tue Nov 28 10:22:54 PST 2006


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

Change 110626 by gonzo at 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:


More information about the p4-projects mailing list