Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/fakecgo/threadentry_amd64.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2026 The Ebitengine Authors

//go:build !cgo && amd64 && (darwin || freebsd || illumos || linux || netbsd)
//go:build !cgo && (darwin || freebsd || illumos || linux || netbsd)

package fakecgo

Expand Down
5 changes: 5 additions & 0 deletions internal/fakecgo/trampolines_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ TEXT threadentry_trampoline(SB), NOSPLIT, $0
MOVQ DI, AX
MOVQ ·threadentry_call(SB), R11
MOVQ (R11), R11
// threadentry is ABIInternal, so the caller reserves the spill slot for
// its register argument, as runtime·sigtramp does. The slot must not
// overlap the registers saved by PUSH_REGS_HOST_TO_ABI0.
ADJSP $8
CALL R11
ADJSP $-8

POP_REGS_HOST_TO_ABI0()
RET
Expand Down
Loading