github.com/v2pro/plz@v0.0.0-20221028024117-e5f9aec5b631/gls/goid_386.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 "go_asm.h"
     6  #include "go_tls.h"
     7  #include "textflag.h"
     8  
     9  TEXT ·getg(SB), NOSPLIT, $0-4
    10      get_tls(CX)
    11      MOVL    g(CX), AX
    12      MOVL    AX, ret+0(FP)
    13      RET