github.com/timandy/routine@v1.1.4-0.20240507073150-e4a3e1fe2ba5/g/asm_386.s (about) 1 // Copyright 2021-2024 TimAndy. All rights reserved. 2 // Licensed under the Apache-2.0 license that can be found in the LICENSE file. 3 4 #include "funcdata.h" 5 #include "go_asm.h" 6 #include "go_tls.h" 7 #include "textflag.h" 8 9 TEXT ·getgp(SB), NOSPLIT, $0-4 10 get_tls(CX) 11 MOVL g(CX), AX 12 MOVL AX, ret+0(FP) 13 RET