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.
4
5//go:build loong64
6
7package runtime
8
9// Called from assembly only; declared for go vet.
10func load_g()
11func save_g()
12
13// Used by reflectcall and the reflect package.
14//
15// Spills/loads arguments in registers to/from an internal/abi.RegArgs
16// respectively. Does not follow the Go ABI.
17func spillArgs()
18func unspillArgs()
19
20// getfp returns the frame pointer register of its caller or 0 if not implemented.
21// TODO: Make this a compiler intrinsic
22func getfp() uintptr { return 0 }
23