summaryrefslogtreecommitdiff
path: root/src/runtime/asm_arm.s
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2014-09-25 08:37:04 -0700
committerKeith Randall <khr@golang.org>2014-09-25 08:37:04 -0700
commitfadd371f5df44d1f6caa6aaae0b46ab5b7e1f3c7 (patch)
treef41c02573967b27e3ea4577ee50360147daa43cc /src/runtime/asm_arm.s
parent0c34008d4e1b07c77820b855e95971ca0e2d9a8b (diff)
downloadgo-fadd371f5df44d1f6caa6aaae0b46ab5b7e1f3c7.tar.gz
runtime: add load_g call in arm callback.
Need to restore the g register. Somehow this line vaporized from CL 144130043. Also cgo_topofstack -> _cgo_topofstack, that vaporized also. TBR=rsc CC=golang-codereviews https://codereview.appspot.com/150940044
Diffstat (limited to 'src/runtime/asm_arm.s')
-rw-r--r--src/runtime/asm_arm.s3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s
index 2c5de8afb..06bd0751d 100644
--- a/src/runtime/asm_arm.s
+++ b/src/runtime/asm_arm.s
@@ -1303,7 +1303,8 @@ yieldloop:
// Called from cgo wrappers, this function returns g->m->curg.stack.hi.
// Must obey the gcc calling convention.
-TEXT cgo_topofstack(SB),NOSPLIT,$0
+TEXT _cgo_topofstack(SB),NOSPLIT,$0
+ BL runtimeĀ·load_g(SB)
MOVW g_m(g), R0
MOVW m_curg(R0), R0
MOVW (g_stack+stack_hi)(R0), R0