Source File
sys_x86.go
Belonging Package
runtime
// Copyright 2013 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 amd64 386
package runtime
import (
)
// adjust Gobuf as if it executed a call to fn with context ctxt
// and then did an immediate gosave.
func ( *gobuf, , unsafe.Pointer) {
:= .sp
if sys.RegSize > sys.PtrSize {
-= sys.PtrSize
*(*uintptr)(unsafe.Pointer()) = 0
}
-= sys.PtrSize
*(*uintptr)(unsafe.Pointer()) = .pc
.sp =
.pc = uintptr()
.ctxt =
}