[NTOS] Increment ActiveProcessors accurately

This commit is contained in:
Justin Miller 2022-03-26 22:18:31 -07:00 committed by George Bișoc
parent fbd033df0a
commit 2a33aed7cf

View file

@ -547,7 +547,7 @@ KiInitializeKernel(IN PKPROCESS InitProcess,
InitThread->State = Running;
InitThread->Affinity = 1 << Number;
InitThread->WaitIrql = DISPATCH_LEVEL;
InitProcess->ActiveProcessors = 1 << Number;
InitProcess->ActiveProcessors |= 1 << Number;
/* HACK for MmUpdatePageDir */
((PETHREAD)InitThread)->ThreadsProcess = (PEPROCESS)InitProcess;