Source file src/runtime/stubs_loong64.go
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 7 package runtime 8 9 import "unsafe" 10 11 // Called from assembly only; declared for go vet. 12 // 13 // load_g is also called from runtime/cgo. 14 // 15 //go:linknamestd load_g 16 func load_g() 17 func save_g() 18 19 //go:noescape 20 func asmcgocall_no_g(fn, arg unsafe.Pointer) 21 22 // Used by reflectcall and the reflect package. 23 // 24 // Spills/loads arguments in registers to/from an internal/abi.RegArgs 25 // respectively. Does not follow the Go ABI. 26 // 27 //go:linknamestd spillArgs 28 func spillArgs() 29 30 //go:linknamestd unspillArgs 31 func unspillArgs() 32 33 // getfp returns the frame pointer register of its caller or 0 if not implemented. 34 // TODO: Make this a compiler intrinsic 35 // 36 //go:nosplit 37 func getfp() uintptr { return 0 } 38