summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Martin <ality@pbrane.org>2014-09-10 06:25:05 -0700
committerAnthony Martin <ality@pbrane.org>2014-09-10 06:25:05 -0700
commit33b41d5dc4136f24e0a0feb9b3058600c76f687e (patch)
treebd8320a222ebb6394ebde69030215e1e1747f3a4 /src
parent719eb6af9827aabbb43a73c335ef541326ca95d4 (diff)
downloadgo-33b41d5dc4136f24e0a0feb9b3058600c76f687e.tar.gz
runtime: stop plan9/amd64 build from crashing
LGTM=iant R=rsc, 0intro, alex.brainman, iant CC=golang-codereviews https://codereview.appspot.com/140460044 Committer: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/asm_amd64.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/asm_amd64.s b/src/runtime/asm_amd64.s
index 1a106dc1f..e5702d074 100644
--- a/src/runtime/asm_amd64.s
+++ b/src/runtime/asm_amd64.s
@@ -272,6 +272,7 @@ onm:
// record an argument size. For that purpose, it has no arguments.
TEXT runtime·morestack(SB),NOSPLIT,$0-0
// Cannot grow scheduler stack (m->g0).
+ get_tls(CX)
MOVQ g(CX), BX
MOVQ g_m(BX), BX
MOVQ m_g0(BX), SI