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