1 // Copyright 2013 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.
5 //go:build amd64 || 386
14 // adjust Gobuf as if it executed a call to fn with context ctxt
15 // and then stopped before the first instruction in fn.
16 func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) {
19 *(*uintptr)(unsafe.Pointer(sp)) = buf.pc