github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/sync2/runtime2/go_tls.go110.h (about)

     1  // +build go1.10
     2  
     3  // Copyright 2014 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  #ifdef GOARCH_arm
     8  #define LR R14
     9  #endif
    10  
    11  #ifdef GOARCH_amd64
    12  #define	get_tls(r)	MOVQ TLS, r
    13  #define	g(r)	0(r)(TLS*1)
    14  #endif
    15  
    16  #ifdef GOARCH_amd64p32
    17  #define	get_tls(r)	MOVL TLS, r
    18  #define	g(r)	0(r)(TLS*1)
    19  #endif
    20  
    21  #ifdef GOARCH_386
    22  #define	get_tls(r)	MOVL TLS, r
    23  #define	g(r)	0(r)(TLS*1)
    24  #endif
    25  
    26  #define G_ID_OFFSET 152
    27  #define G_M_OFFSET 48
    28  #define M_P_OFFSET 208
    29  #define P_ID_OFFSET 8