Debian Codegraph @

src/runtime/preempt_noxreg.go

raw
1 // Copyright 2025 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.
4
5 //go:build !amd64 && !arm64 && !loong64
6
7 // This provides common support for architectures that DO NOT use extended
8 // register state in asynchronous preemption.
9
10 package runtime
11
12 type xRegPerG struct{}
13
14 type xRegPerP struct{}
15
16 // xRegState is defined only so the build fails if we try to define a real
17 // xRegState on a noxreg architecture.
18 type xRegState struct{}
19
20 func xRegInitAlloc() {}
21
22 func xRegSave(gp *g) {}
23
24 //go:nosplit
25 func xRegRestore(gp *g) {}
26
27 func (*xRegPerP) free() {}