github.com/Rookout/GoSDK@v0.1.48/pkg/services/go_runtime/getg_amd64.s (about)

     1  //go:build go1.15 && !go1.22 && amd64
     2  // +build go1.15,!go1.22,amd64
     3  
     4  #include "funcdata.h"
     5  #include "textflag.h"
     6  
     7  
     8  
     9  
    10  
    11  
    12  
    13  
    14  
    15  
    16  
    17  
    18  
    19  
    20  
    21  
    22  
    23  
    24  
    25  
    26  
    27  
    28  
    29  
    30  
    31  
    32  
    33  
    34  
    35  
    36  
    37  
    38  
    39  TEXT ·Getg(SB),NOSPLIT, $0-8
    40  MOVQ TLS, CX
    41  MOVQ 0(CX)(TLS*1), AX
    42  MOVQ AX, ret+0(FP)
    43  RET