feat(asm): the TLS access pair in the toolchain's one-instruction form
Assisted-by: GLM 5.3 Flash
This commit is contained in:
Vendored
+7
@@ -34,3 +34,10 @@ TEXT ·Frame(SB), NOSPLIT, $0
|
||||
ADJSP $-(64 - 8)
|
||||
POPFQ
|
||||
RET
|
||||
|
||||
// func Tls() int64
|
||||
TEXT ·Tls(SB), NOSPLIT, $0-8
|
||||
MOVQ TLS, BX
|
||||
MOVQ 0(BX)(TLS*1), AX
|
||||
MOVQ AX, ret+0(FP)
|
||||
RET
|
||||
|
||||
Reference in New Issue
Block a user