1
0
mirror of https://github.com/golang/go synced 2024-11-27 05:01:19 -07:00

runtime: fix SP alignment in mips{,le} sigfwd

Fixes misc/cgo/testsigfwd, enabled for mips{,le} with the next commit
(https://golang.org/cl/34646).

Change-Id: I2bec894b0492fd4d84dd73a4faa19eafca760107
Reviewed-on: https://go-review.googlesource.com/34645
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Vladimir Stefanovic 2016-12-27 16:26:41 +01:00 committed by Brad Fitzpatrick
parent af7bc07049
commit 155d314e50

View File

@ -249,7 +249,7 @@ TEXT runtime·sigfwd(SB),NOSPLIT,$0-16
MOVW fn+0(FP), R25
MOVW R29, R22
SUBU $16, R29
AND $0x7, R29 // shadow space for 4 args aligned to 8 bytes as per O32 ABI
AND $~7, R29 // shadow space for 4 args aligned to 8 bytes as per O32 ABI
JAL (R25)
MOVW R22, R29
RET