github.com/suiyunonghen/DxCommonLib@v0.5.3/system/getg_amd64.s (about)

     1  // Copyright 2018 Huan Du. All rights reserved.
     2  // Licensed under the MIT license that can be found in the LICENSE file.
     3  
     4  #include "go_asm.h"
     5  #include "go_tls.h"
     6  #include "textflag.h"
     7  
     8  TEXT ·getg(SB), NOSPLIT, $0-8
     9      get_tls(CX)
    10      MOVQ    g(CX), AX
    11      MOVQ    AX, ret+0(FP)
    12      RET