Debian Codegraph @

internal/fakecgo/threadentry_amd64.go

raw
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: 2026 The Ebitengine Authors
3
4 //go:build !cgo && amd64 && (darwin || freebsd || linux || netbsd)
5
6 package fakecgo
7
8 // callThreadEntryFn calls fn (runtime.mstart) while saving and restoring the
9 // frame pointer and other callee-saved registers around the call. mstart
10 // returns with BP clobbered, so without this shim the caller's frame-pointer
11 // epilogue would fault. Implemented in trampolines_amd64.s.
12 //
13 //go:nosplit
14 //go:norace
15 func callThreadEntryFn(fn uintptr)