1
0
mirror of https://github.com/golang/go synced 2024-11-12 05:30:21 -07:00

runtime: fix cgocallback_gofunc argument passing on arm64

Change-Id: I4b34bcd5cde71ecfbb352b39c4231de6168cc7f3
Reviewed-on: https://go-review.googlesource.com/22651
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Munday <munday@ca.ibm.com>
This commit is contained in:
Ian Lance Taylor 2016-04-29 15:44:36 -07:00
parent 36b6c03827
commit 9fe572e509

View File

@ -648,10 +648,10 @@ havem:
BL runtime·save_g(SB) BL runtime·save_g(SB)
MOVD (g_sched+gobuf_sp)(g), R4 // prepare stack as R4 MOVD (g_sched+gobuf_sp)(g), R4 // prepare stack as R4
MOVD (g_sched+gobuf_pc)(g), R5 MOVD (g_sched+gobuf_pc)(g), R5
MOVD R5, -(16+8)(R4) MOVD R5, -(24+8)(R4)
MOVD ctxt+24(FP), R0 MOVD ctxt+24(FP), R0
MOVD R0, -(24+8)(R4) // maintain 16-byte SP alignment MOVD R0, -(16+8)(R4)
MOVD $-(24+8)(R4), R0 MOVD $-(24+8)(R4), R0 // maintain 16-byte SP alignment
MOVD R0, RSP MOVD R0, RSP
BL runtime·cgocallbackg(SB) BL runtime·cgocallbackg(SB)