summaryrefslogtreecommitdiffstats
path: root/contrib/go/_std_1.26/src/runtime/preempt_noxreg.go
blob: 977bf0bcec7b349b1582e3aa49799bc2fd010e46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2025 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !amd64 && !arm64 && !loong64

// This provides common support for architectures that DO NOT use extended
// register state in asynchronous preemption.

package runtime

type xRegPerG struct{}

type xRegPerP struct{}

// xRegState is defined only so the build fails if we try to define a real
// xRegState on a noxreg architecture.
type xRegState struct{}

func xRegInitAlloc() {}

func xRegSave(gp *g) {}

//go:nosplit
func xRegRestore(gp *g) {}

func (*xRegPerP) free() {}