diff options
Diffstat (limited to 'src/runtime/sys_linux_mips64x.s')
| -rw-r--r-- | src/runtime/sys_linux_mips64x.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/sys_linux_mips64x.s b/src/runtime/sys_linux_mips64x.s index b0cb0672fa..49459b0cec 100644 --- a/src/runtime/sys_linux_mips64x.s +++ b/src/runtime/sys_linux_mips64x.s @@ -96,7 +96,7 @@ TEXT runtime·write1(SB),NOSPLIT|NOFRAME,$0-28 MOVV $SYS_write, R2 SYSCALL BEQ R7, 2(PC) - MOVW $-1, R2 + SUBVU R2, R0, R2 // caller expects negative errno MOVW R2, ret+24(FP) RET @@ -107,7 +107,7 @@ TEXT runtime·read(SB),NOSPLIT|NOFRAME,$0-28 MOVV $SYS_read, R2 SYSCALL BEQ R7, 2(PC) - MOVW $-1, R2 + SUBVU R2, R0, R2 // caller expects negative errno MOVW R2, ret+24(FP) RET |
