github.com/mdempsky/go@v0.0.0-20151201204031-5dd372bd1e70/src/runtime/tls_arm64.h (about) 1 // Copyright 2015 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 GOOS_android 6 #define TLS_linux 7 #endif 8 #ifdef GOOS_linux 9 #define TLS_linux 10 #endif 11 #ifdef TLS_linux 12 #define TPIDR TPIDR_EL0 13 #define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDR_EL0, R0 14 #endif 15 16 #ifdef GOOS_darwin 17 #define TPIDR TPIDRRO_EL0 18 #define TLSG_IS_VARIABLE 19 #define MRS_TPIDR_R0 WORD $0xd53bd060 // MRS TPIDRRO_EL0, R0 20 #endif 21 22 // Define something that will break the build if 23 // the GOOS is unknown. 24 #ifndef TPIDR 25 #define MRS_TPIDR_R0 TPIDR_UNKNOWN 26 #endif