[NTOS]: Allocate non-paged pool pages with MiRemoveAnyPage instead of MmAllocPage.

svn path=/trunk/; revision=47570
This commit is contained in:
Sir Richard 2010-06-04 17:40:11 +00:00
parent 86ed4d64b5
commit 1c28c16dfe

View file

@ -590,10 +590,8 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
TempPte = ValidKernelPte;
do
{
//
// Allocate a page
//
PageFrameNumber = MmAllocPage(MC_NPPOOL);
/* Allocate a page */
PageFrameNumber = MiRemoveAnyPage(0);
/* Get the PFN entry for it and fill it out */
Pfn1 = MiGetPfnEntry(PageFrameNumber);