Source file src/runtime/stubs_arm.go
1 // Copyright 2018 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 compiler-generated code; declared for go vet. 10 func udiv() 11 func _div() 12 func _divu() 13 func _mod() 14 func _modu() 15 16 // Called from assembly only; declared for go vet. 17 // 18 // load_g is also called from runtime/cgo. 19 // 20 // load_g should be an internal detail, 21 // but widely used packages access it using linkname. 22 // Notable members of the hall of shame include: 23 // - github.com/ebitengine/purego 24 // 25 //go:linkname load_g 26 func load_g() 27 func save_g() 28 func emptyfunc() 29 func _initcgo() 30 func read_tls_fallback() 31 func usplitR0() 32 33 //go:noescape 34 func asmcgocall_no_g(fn, arg unsafe.Pointer) 35 36 // getfp returns the frame pointer register of its caller or 0 if not implemented. 37 // TODO: Make this a compiler intrinsic 38 // 39 //go:nosplit 40 func getfp() uintptr { return 0 } 41