fix mips syscall_cp_asm code (saved register usage)

This commit is contained in:
Rich Felker 2012-09-09 00:59:30 -04:00
parent 21419914c5
commit be48e22b42
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ __syscall_cp_asm:
__cp_begin: __cp_begin:
lw $4, 0($4) lw $4, 0($4)
bne $4, $0, 2f bne $4, $0, 2f
move $10, $5 move $25, $5
move $4, $6 move $4, $6
move $5, $7 move $5, $7
lw $6, 16($sp) lw $6, 16($sp)
@ -17,7 +17,7 @@ __cp_begin:
subu $sp, $sp, 32 subu $sp, $sp, 32
sw $8, 16($sp) sw $8, 16($sp)
sw $9, 20($sp) sw $9, 20($sp)
move $2, $10 move $2, $25
syscall syscall
.global __cp_end .global __cp_end
__cp_end: __cp_end: