From: Ian Lance Taylor Date: Tue, 31 May 2016 21:07:38 +0000 (-0700) Subject: runtime: fix restoring PC in ARM version of cgocallback_gofunc X-Git-Tag: go1.7beta1~24 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=690de51ffac1473820212c88a11685b40f7bde3b;p=gostls13.git runtime: fix restoring PC in ARM version of cgocallback_gofunc Fixes #15856. Change-Id: Ia8def161642087e4bd92a87298c77a0f9f83dc86 Reviewed-on: https://go-review.googlesource.com/23586 Run-TryBot: Ian Lance Taylor Reviewed-by: Elias Naur TryBot-Result: Gobot Gobot Reviewed-by: Austin Clements --- diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s index df6bde61ee..f02297e8f0 100644 --- a/src/runtime/asm_arm.s +++ b/src/runtime/asm_arm.s @@ -626,7 +626,7 @@ havem: BL runtime·cgocallbackg(SB) // Restore g->sched (== m->curg->sched) from saved values. - MOVW 4(R13), R5 + MOVW 0(R13), R5 MOVW R5, (g_sched+gobuf_pc)(g) MOVW $12(R13), R4 MOVW R4, (g_sched+gobuf_sp)(g)