github.com/eframework-cn/EP.GO.UTIL@v1.0.0/xos/getg_386.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-4
     9      get_tls(CX)
    10      MOVL    g(CX), AX
    11      MOVL    AX, ret+0(FP)
    12      RET