PERFORCE change 118318 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Tue Apr 17 18:09:51 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=118318
Change 118318 by gonzo at gonzo_jeeves on 2007/04/17 18:09:08
o Use v1 as temporary register and do not mess with stack.
Affected files ...
.. //depot/projects/mips2/src/lib/libc/mips/sys/sbrk.S#5 edit
Differences ...
==== //depot/projects/mips2/src/lib/libc/mips/sys/sbrk.S#5 (text+ko) ====
@@ -55,17 +55,13 @@
.cpload t9
.set reorder
#endif
- subu sp, sp, 4
- sw s0, 0(sp)
- lw s0, _C_LABEL(__curbrk)
+ lw v1, _C_LABEL(__curbrk)
li v0, SYS_break
- addu a0, a0, s0 # compute current break
+ addu a0, a0, v1 # compute current break
syscall
bne a3, zero, 1f
- move v0, s0 # return old val of curbrk from above
+ move v0, v1 # 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)
More information about the p4-projects
mailing list