1 // Copyright 2022 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
10 // If !iscgo, this is a no-op.
12 // NOTE: mcall() assumes this clobbers only R30 (REGTMP).
13 TEXT runtime·save_g(SB),NOSPLIT|NOFRAME,$0-0
14 MOVB runtime·iscgo(SB), R30
17 MOVV g, runtime·tls_g(SB)
22 TEXT runtime·load_g(SB),NOSPLIT|NOFRAME,$0-0
23 MOVV runtime·tls_g(SB), g
26 GLOBL runtime·tls_g(SB), TLSBSS, $8