From: Anthony Martin Date: Wed, 10 Sep 2014 13:25:05 +0000 (-0700) Subject: runtime: stop plan9/amd64 build from crashing X-Git-Tag: go1.4beta1~448 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2302b21bbeef1c0bca8fff62c2d34cd301ce38a0;p=gostls13.git runtime: stop plan9/amd64 build from crashing LGTM=iant R=rsc, 0intro, alex.brainman, iant CC=golang-codereviews https://golang.org/cl/140460044 --- diff --git a/src/runtime/asm_amd64.s b/src/runtime/asm_amd64.s index 1a106dc1f1..e5702d074c 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