mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[NTOS:KE/x64] Move initialization of KeActiveProcessors
This commit is contained in:
parent
323f18e446
commit
36829a6bd9
1 changed files with 3 additions and 3 deletions
|
@ -490,6 +490,9 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
/* Get the current CPU number */
|
||||
Cpu = KeNumberProcessors++; // FIXME
|
||||
|
||||
/* Set processor as active */
|
||||
KeActiveProcessors |= 1ULL << Cpu;
|
||||
|
||||
/* LoaderBlock initialization for Cpu 0 */
|
||||
if (Cpu == 0)
|
||||
{
|
||||
|
@ -548,9 +551,6 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
/* Initialize the Processor with HAL */
|
||||
HalInitializeProcessor(Cpu, KeLoaderBlock);
|
||||
|
||||
/* Set processor as active */
|
||||
KeActiveProcessors |= 1ULL << Cpu;
|
||||
|
||||
/* Release lock */
|
||||
InterlockedAnd64((PLONG64)&KiFreezeExecutionLock, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue