github.com/comwrg/go/src@v0.0.0-20220319063731-c238d0440370/runtime/sys_mips64x.go (about) 1 // Copyright 2015 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 mips64 || mips64le 6 // +build mips64 mips64le 7 8 package runtime 9 10 import "unsafe" 11 12 // adjust Gobuf as if it executed a call to fn with context ctxt 13 // and then did an immediate Gosave. 14 func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) { 15 if buf.lr != 0 { 16 throw("invalid use of gostartcall") 17 } 18 buf.lr = buf.pc 19 buf.pc = uintptr(fn) 20 buf.ctxt = ctxt 21 }