Source file src/runtime/sys_s390x.go
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 package runtime 6 7 import "unsafe" 8 9 // adjust Gobuf as if it executed a call to fn with context ctxt 10 // and then did an immediate Gosave. 11 func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) { 12 if buf.lr != 0 { 13 throw("invalid use of gostartcall") 14 } 15 buf.lr = buf.pc 16 buf.pc = uintptr(fn) 17 buf.ctxt = ctxt 18 } 19