Replace jmp with call to maintain ABI stack alignment

This commit is contained in:
2026-06-12 15:58:42 +02:00
parent b0074637f8
commit 7a10135731

View File

@@ -221,7 +221,7 @@ KE::KernelInit::SwitchBootStack(VOID)
__asm__ volatile("movq %[Stack], %%rsp\n"
"subq %[TotalSize], %%rsp\n"
"xorq %%rbp, %%rbp\n"
"jmp *%[TargetRoutine]\n"
"call *%[TargetRoutine]\n"
:
: [Stack] "r" (Stack),
[TargetRoutine] "r" (StartKernel),