diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2015-11-12 15:35:50 -0800 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2015-11-13 01:53:00 +0000 |
| commit | 7bb38f6e470995d54a8bac3a67f997efc1f60c69 (patch) | |
| tree | d32a4180796a993b868a24fda54a99a9326d7d84 /src/runtime/asm_amd64.s | |
| parent | 940d41e386d92bda0f4fb39541df89ed424a012d (diff) | |
| download | go-7bb38f6e470995d54a8bac3a67f997efc1f60c69.tar.xz | |
runtime: replace tls0 with m0.tls
We're allocating TLS storage for m0 anyway, so might as well use it.
Change-Id: I7dc20bbea5320c8ab8a367f18a9540706751e771
Reviewed-on: https://go-review.googlesource.com/16890
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/asm_amd64.s')
| -rw-r--r-- | src/runtime/asm_amd64.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/asm_amd64.s b/src/runtime/asm_amd64.s index 2f8940a678..4e5e8f7512 100644 --- a/src/runtime/asm_amd64.s +++ b/src/runtime/asm_amd64.s @@ -104,13 +104,13 @@ needtls: JMP ok #endif - LEAQ runtime·tls0(SB), DI + LEAQ runtime·m0+m_tls(SB), DI CALL runtime·settls(SB) // store through it, to make sure it works get_tls(BX) MOVQ $0x123, g(BX) - MOVQ runtime·tls0(SB), AX + MOVQ runtime·m0+m_tls(SB), AX CMPQ AX, $0x123 JEQ 2(PC) MOVL AX, 0 // abort |
