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

View as plain text