src/runtime/go_tls.h
raw| 1 | // Copyright 2014 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | #ifdef GOARCH_arm |
| 6 | #define LR R14 |
| 7 | #endif |
| 8 | |
| 9 | #ifdef GOARCH_amd64 |
| 10 | #define get_tls(r) MOVQ TLS, r |
| 11 | #define g(r) 0(r)(TLS*1) |
| 12 | #endif |
| 13 | |
| 14 | #ifdef GOARCH_386 |
| 15 | #define get_tls(r) MOVL TLS, r |
| 16 | #define g(r) 0(r)(TLS*1) |
| 17 | #endif |