mirror of
https://github.com/golang/go
synced 2024-11-08 11:16:19 -07:00
272032d0b2
Only exe buildmode without cgo supported. Change-Id: Id104a79a99d3285c04db00fd98b8affa94ea3c37 Reviewed-on: https://go-review.googlesource.com/31487 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
21 lines
492 B
Go
21 lines
492 B
Go
// Copyright 2016 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build mips mipsle
|
|
|
|
package runtime
|
|
|
|
import "unsafe"
|
|
|
|
// adjust Gobuf as if it executed a call to fn with context ctxt
|
|
// and then did an immediate Gosave.
|
|
func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) {
|
|
if buf.lr != 0 {
|
|
throw("invalid use of gostartcall")
|
|
}
|
|
buf.lr = buf.pc
|
|
buf.pc = uintptr(fn)
|
|
buf.ctxt = ctxt
|
|
}
|