[NTOS:KE/x64] Move initialization of KeActiveProcessors

This commit is contained in:
Timo Kreuzer 2023-12-02 11:55:54 +02:00
parent 323f18e446
commit 36829a6bd9

View file

@ -490,6 +490,9 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
/* Get the current CPU number */
Cpu = KeNumberProcessors++; // FIXME
/* Set processor as active */
KeActiveProcessors |= 1ULL << Cpu;
/* LoaderBlock initialization for Cpu 0 */
if (Cpu == 0)
{
@ -548,9 +551,6 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
/* Initialize the Processor with HAL */
HalInitializeProcessor(Cpu, KeLoaderBlock);
/* Set processor as active */
KeActiveProcessors |= 1ULL << Cpu;
/* Release lock */
InterlockedAnd64((PLONG64)&KiFreezeExecutionLock, 0);