Unify initial stack reservation size calculation

This commit is contained in:
2026-05-22 18:40:07 +02:00
parent d8cb7c9242
commit 6eb0b4d982
4 changed files with 8 additions and 3 deletions

View File

@@ -213,7 +213,6 @@ KE::KernelInit::SwitchBootStack(VOID)
:
: [Stack] "r" (Stack),
[TargetRoutine] "r" (StartKernel),
[TotalSize] "i" (FLOATING_SAVE_AREA_SIZE + KEXCEPTION_FRAME_SIZE +
KSWITCH_FRAME_SIZE + KRETURN_ADDRESS_SIZE)
[TotalSize] "i" (KTHREAD_STACK_INITIAL_RESERVE)
: "memory", "rbp", "rsp");
}