github.com/gidoBOSSftw5731/go/src@v0.0.0-20210226122457-d24b0edbf019/runtime/sys_mipsx.go (about) 1 // Copyright 2016 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 mips || mipsle 6 // +build mips mipsle 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 }