diff options
author | Keith Randall <khr@golang.org> | 2014-09-25 08:37:04 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2014-09-25 08:37:04 -0700 |
commit | fadd371f5df44d1f6caa6aaae0b46ab5b7e1f3c7 (patch) | |
tree | f41c02573967b27e3ea4577ee50360147daa43cc /src/runtime/asm_arm.s | |
parent | 0c34008d4e1b07c77820b855e95971ca0e2d9a8b (diff) | |
download | go-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.s | 3 |
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 |