Skip to content

Commit

Permalink
[NTOS:KE/i386] KeStartAllProcessors(): ProcessorCount is a ULONG (rea…
Browse files Browse the repository at this point in the history
…ctos#7455)

Let's be explicit.

Addendum to 516ccad (0.4.15-dev-7016).
  • Loading branch information
SergeGautherie authored Oct 16, 2024
1 parent 5d361b6 commit 4c84e19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ntoskrnl/ke/i386/mproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ NTAPI
KeStartAllProcessors(VOID)
{
PVOID KernelStack, DPCStack;
SIZE_T ProcessorCount = 0;
ULONG ProcessorCount = 0;
PAPINFO APInfo;

while (TRUE)
Expand Down Expand Up @@ -127,7 +127,7 @@ KeStartAllProcessors(VOID)
KeLoaderBlock->Thread = (ULONG_PTR)&APInfo->Pcr.Prcb->IdleThread;

// Start the CPU
DPRINT("Attempting to Start a CPU with number: %u\n", ProcessorCount);
DPRINT("Attempting to Start a CPU with number: %lu\n", ProcessorCount);
if (!HalStartNextProcessor(KeLoaderBlock, ProcessorState))
{
break;
Expand All @@ -152,5 +152,5 @@ KeStartAllProcessors(VOID)
if (DPCStack)
MmDeleteKernelStack(DPCStack, FALSE);

DPRINT1("KeStartAllProcessors: Successful AP startup count is %u\n", ProcessorCount);
DPRINT1("KeStartAllProcessors: Successful AP startup count is %lu\n", ProcessorCount);
}

0 comments on commit 4c84e19

Please sign in to comment.