From 5abf0c76b7251b1b03d8e326bd95951566e1bae7 Mon Sep 17 00:00:00 2001 From: Oleg Dubinskiy Date: Wed, 24 Jan 2024 17:52:56 +0100 Subject: [PATCH] [NTOS:KE/x86/arm] Use a better boot process affinity value (#6399) Use a value that is independent of the CPU bitness. Addendum to commit 96d5b6281 --- ntoskrnl/ke/arm/kiinit.c | 2 +- ntoskrnl/ke/i386/kiinit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ntoskrnl/ke/arm/kiinit.c b/ntoskrnl/ke/arm/kiinit.c index 86db2d9377f..34413f17a57 100644 --- a/ntoskrnl/ke/arm/kiinit.c +++ b/ntoskrnl/ke/arm/kiinit.c @@ -101,7 +101,7 @@ KiInitializeKernel(IN PKPROCESS InitProcess, PageDirectory[1] = 0; KeInitializeProcess(InitProcess, 0, - 0xFFFFFFFF, + MAXULONG_PTR, PageDirectory, FALSE); InitProcess->QuantumReset = MAXCHAR; diff --git a/ntoskrnl/ke/i386/kiinit.c b/ntoskrnl/ke/i386/kiinit.c index 2620885156a..e3ec9ed94bf 100644 --- a/ntoskrnl/ke/i386/kiinit.c +++ b/ntoskrnl/ke/i386/kiinit.c @@ -527,7 +527,7 @@ KiInitializeKernel(IN PKPROCESS InitProcess, PageDirectory[1] = 0; KeInitializeProcess(InitProcess, 0, - 0xFFFFFFFF, + MAXULONG_PTR, PageDirectory, FALSE); InitProcess->QuantumReset = MAXCHAR;