Fix boot stack initialization by returning the highest address

This commit is contained in:
2026-05-03 18:49:51 +02:00
parent d532303b7f
commit a7151dbc89
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ XTAPI
PVOID PVOID
AR::ProcSup::GetBootStack(VOID) AR::ProcSup::GetBootStack(VOID)
{ {
return (PVOID)BootStack; return (PVOID)((ULONG_PTR)BootStack + KERNEL_STACK_SIZE);
} }
XTAPI XTAPI

View File

@@ -20,7 +20,7 @@ XTAPI
PVOID PVOID
AR::ProcSup::GetBootStack(VOID) AR::ProcSup::GetBootStack(VOID)
{ {
return (PVOID)BootStack; return (PVOID)((ULONG_PTR)BootStack + KERNEL_STACK_SIZE);
} }
XTAPI XTAPI