Commit 689fa9cc authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

syscall: fix linux/mipsx ret value FP offsets for Syscall9

Found by vet.

Change-Id: Idf910405566816ddce6781c8e99f90b59f33d63c
Reviewed-on: https://go-review.googlesource.com/37308
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
parent 00e2524d
......@@ -88,15 +88,15 @@ TEXT ·Syscall9(SB),NOSPLIT,$28-52
SYSCALL
BEQ R7, ok9
MOVW $-1, R1
MOVW R1, r1+28(FP) // r1
MOVW R0, r2+32(FP) // r2
MOVW R2, err+36(FP) // errno
MOVW R1, r1+40(FP) // r1
MOVW R0, r2+44(FP) // r2
MOVW R2, err+48(FP) // errno
JAL runtime·exitsyscall(SB)
RET
ok9:
MOVW R2, r1+28(FP) // r1
MOVW R3, r2+32(FP) // r2
MOVW R0, err+36(FP) // errno
MOVW R2, r1+40(FP) // r1
MOVW R3, r2+44(FP) // r2
MOVW R0, err+48(FP) // errno
JAL runtime·exitsyscall(SB)
RET
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment