Use portable affinity mask for the idle process
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 44s
Builds / ExectOS (i686) (push) Successful in 42s

The hardcoded value 0xFFFFFFFF restricted the idle process to the first 32 processors on 64-bit system.
This commit is contained in:
Aiken Harris 2025-07-20 12:33:10 +02:00 committed by CodingWorkshop Signing Team
parent fdf649fcec
commit 24b6cc2250
Signed by: CodingWorkshop Signing Team
GPG Key ID: 6DC88369C82795D2

View File

@ -93,7 +93,7 @@ KepStartKernel(VOID)
RtlInitializeListHead(&KepProcessListHead); RtlInitializeListHead(&KepProcessListHead);
PageDirectory[0] = 0; PageDirectory[0] = 0;
PageDirectory[1] = 0; PageDirectory[1] = 0;
KeInitializeProcess(CurrentProcess, 0, 0xFFFFFFFF, PageDirectory, FALSE); KeInitializeProcess(CurrentProcess, 0, MAXULONG_PTR, PageDirectory, FALSE);
CurrentProcess->Quantum = MAXCHAR; CurrentProcess->Quantum = MAXCHAR;
/* Initialize Idle thread */ /* Initialize Idle thread */