Raise to HIGH runlevel before switching the stack
Builds / ExectOS (amd64) (push) Successful in 34s Details
Builds / ExectOS (i686) (push) Successful in 33s Details

This commit is contained in:
Rafal Kupiec 2024-04-19 23:55:26 +02:00
parent 3aa0413756
commit 5539d98572
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,9 @@ KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK Parameters)
/* Architecture specific kernel initialization */
KepInitializeMachine();
/* Raise to HIGH runlevel */
KeRaiseRunLevel(HIGH_LEVEL);
/* Switch boot stack aligning it to 4 byte boundary */
KepSwitchBootStack((ULONG_PTR)&ArKernelBootStack & ~0x3);
}