github.com/cocotyty/oneshot@v0.0.0-20210707064948-4d5a81d0b747/getg_amd64.s (about) 1 #include "textflag.h" 2 #include "go_tls.h" 3 4 // func getG() uintptr 5 TEXT ·getG(SB), NOSPLIT, $0-8 6 get_tls(CX) 7 MOVD g(CX), AX 8 MOVD AX, ret+0(FP) 9 RET