Brad Fitzpatrick | 5194744 | 2016-03-01 22:57:46 +0000 | [diff] [blame] | 1 | // Copyright 2014 The Go Authors. All rights reserved. |
Russ Cox | 0d49f7b | 2014-11-11 01:29:05 -0500 | [diff] [blame] | 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_amd64p32 |
| 15 | #define get_tls(r) MOVL TLS, r |
| 16 | #define g(r) 0(r)(TLS*1) |
| 17 | #endif |
| 18 | |
| 19 | #ifdef GOARCH_386 |
| 20 | #define get_tls(r) MOVL TLS, r |
| 21 | #define g(r) 0(r)(TLS*1) |
| 22 | #endif |