]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix SP alignment in mips{,le} sigfwd
authorVladimir Stefanovic <vladimir.stefanovic@imgtec.com>
Tue, 27 Dec 2016 15:26:41 +0000 (16:26 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 3 Jan 2017 15:42:06 +0000 (15:42 +0000)
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>

src/runtime/sys_linux_mipsx.s

index 6f089f59328d5e30f482c90b674afe0c157c5c71..73ce06114c3abc4f47bc1cc2565a537ae318d423 100644 (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