PERFORCE change 137622 for review

Randall R. Stewart rrs at FreeBSD.org
Thu Mar 13 17:42:04 UTC 2008


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

Change 137622 by rrs at rrs-mips2-jnpr on 2008/03/13 17:42:02

	We need not 4 bytes to the stack, but a divisiable by 8. 
	       Change it all to 16.

Affected files ...

.. //depot/projects/mips2-jnpr/src/lib/libc/mips/sys/sbrk.S#2 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/lib/libc/mips/sys/sbrk.S#2 (text+ko) ====

@@ -55,7 +55,7 @@
 	.cpload	t9
 	.set	reorder
 #endif
-	addu	sp, sp, -4
+	addu	sp, sp, -16
 	sw	s0, 0(sp)		# Preserve s0 value in stack
 					# it should be the same on return
 					# We can't use v1 as temporary
@@ -71,13 +71,13 @@
 	nop
 	move	v0, s0			# return old val of curbrk from above
 	lw	s0, 0(sp)
-	addu	sp, sp, 4
+	addu	sp, sp, 16
 	sw	a0, _C_LABEL(__curbrk)	# save current val of curbrk from above
 	j	ra
 
 1:
 	lw	s0, 0(sp)
-	addu	sp, sp, 4
+	addu	sp, sp, 16
 	la	t9, _C_LABEL(__cerror)
 	jr	t9
 END(__sys_sbrk)


More information about the p4-projects mailing list