Skip to content

Commit

Permalink
TODO: move some stuff around
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Nov 20, 2023
1 parent b862b36 commit 025ce8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ntoskrnl/ke/i386/kiinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,9 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
while ((*(volatile KSPIN_LOCK*)&KiFreezeExecutionLock) & 1);
}

/* Release lock */
InterlockedAnd((PLONG)&KiFreezeExecutionLock, 0);

//TODO: We don't setup IPIs yet so freeze other processors here.
if (Cpu)
{
Expand All @@ -841,9 +844,6 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
/* Initialize the Processor with HAL */
HalInitializeProcessor(Cpu, KeLoaderBlock);

/* Release lock */
InterlockedAnd((PLONG)&KiFreezeExecutionLock, 0);

/* Set active processors */
KeActiveProcessors |= __readfsdword(KPCR_SET_MEMBER);
KeNumberProcessors++;
Expand Down

0 comments on commit 025ce8d

Please sign in to comment.