summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/asm_amd64.s
diff options
context:
space:
mode:
authorTianon Gravi <admwiggin@gmail.com>2014-11-25 23:46:26 -0700
committerTianon Gravi <admwiggin@gmail.com>2014-11-25 23:46:26 -0700
commit8d8329ed5dfb9622c82a9fbec6fd99a580f9c9f6 (patch)
treec4c86e525346536900b0e51a90f4d9a0db1ee895 /src/pkg/runtime/asm_amd64.s
parentf4fa1ef6e6ccd9264db61c6400528158e5913bda (diff)
downloadgolang-upstream/1.3.3.tar.gz
Imported Upstream version 1.3.3upstream/1.3.3
Diffstat (limited to 'src/pkg/runtime/asm_amd64.s')
-rw-r--r--src/pkg/runtime/asm_amd64.s3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/runtime/asm_amd64.s b/src/pkg/runtime/asm_amd64.s
index 3c7eaf343..2e2886609 100644
--- a/src/pkg/runtime/asm_amd64.s
+++ b/src/pkg/runtime/asm_amd64.s
@@ -784,7 +784,8 @@ havem:
MOVQ BP, -8(DI)
LEAQ -(8+8)(DI), SP
MOVQ R8, 0(SP)
- CALL runtime·cgocallbackg(SB)
+ MOVQ $runtime·cgocallbackg(SB), AX // hide function call from linker
+ CALL AX
MOVQ 0(SP), R8
// Restore g->sched (== m->curg->sched) from saved values.