github.com/alphadose/itogami@v0.4.1-0.20221016160904-c25d0a36bfe7/asm_386.s (about) 1 #include "textflag.h" 2 #include "go_asm.h" 3 4 #define get_tls(r) MOVL TLS, r 5 #define g(r) 0(r)(TLS*1) 6 7 TEXT ·GetG(SB),NOSPLIT,$0-4 8 get_tls(CX) 9 MOVL g(CX), AX 10 MOVL AX, gp+0(FP) 11 RET