mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-12 02:11:03 +00:00
plat_fiber_entry is reached by a ret with rsp at top - 8 and called the fiber function without realigning, so the function started with rsp = 0 mod 16 and every 16-byte local was off by 8. The VEX instructions of a v3 build tolerate that; the SSE ones of a v2 build fault on it, and probe-kernel's fiber test crashed in same_regs on pcmpeqb with a memory operand. plat_fiber_entry now aligns rsp to 16 bytes before the call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>