mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 18:04:41 +00:00
[NTOSKRNL/AMD64]
- Only initialize the nonpged pool after the pfn database was initialized - "Fix" IRQL for the initialization of non paged pool svn path=/trunk/; revision=56271
This commit is contained in:
parent
e322927d5a
commit
af3c87e298
|
@ -351,8 +351,6 @@ MiBuildNonPagedPool(VOID)
|
|||
MiInitializeNonPagedPool();
|
||||
MiInitializeNonPagedPoolThresholds();
|
||||
|
||||
/* Initialize the nonpaged pool */
|
||||
InitializePool(NonPagedPool, 0);
|
||||
}
|
||||
|
||||
VOID
|
||||
|
@ -655,7 +653,7 @@ MiBuildPfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
PageCount = MxFreeDescriptor->BasePage - BasePage;
|
||||
MiAddDescriptorToDatabase(BasePage, PageCount, LoaderMemoryData);
|
||||
|
||||
// Reset the descriptor back so we can create the correct memory blocks
|
||||
/* Reset the descriptor back so we can create the correct memory blocks */
|
||||
*MxFreeDescriptor = MxOldFreeDescriptor;
|
||||
}
|
||||
|
||||
|
@ -698,8 +696,17 @@ MiInitMachineDependent(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
/* Now process the page tables */
|
||||
MiBuildPfnDatabaseFromPageTables();
|
||||
|
||||
/* PFNs are initialized now! */
|
||||
MiPfnsInitialized = TRUE;
|
||||
|
||||
//KeLowerIrql(OldIrql);
|
||||
|
||||
/* Need to be at DISPATCH_LEVEL for InitializePool */
|
||||
//KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
|
||||
|
||||
/* Initialize the nonpaged pool */
|
||||
InitializePool(NonPagedPool, 0);
|
||||
|
||||
KeLowerIrql(OldIrql);
|
||||
|
||||
/* Initialize the balancer */
|
||||
|
|
Loading…
Reference in a new issue