gitee.com/quant1x/gox@v1.21.2/gls/goid_amd64.s (about)

     1  // Copyright 2016 Huan Du. All rights reserved.
     2  // Use of this source code is governed by a MIT
     3  // license that can be found in the LICENSE file.
     4  
     5  #include "textflag.h"
     6  #include "go_tls.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