1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:44:48 -07:00

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: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Josh Bleecher Snyder 2017-02-20 22:58:36 -08:00
parent 00e2524d8a
commit 689fa9cc28

View File

@ -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