- Initialize system PTE space.

svn path=/trunk/; revision=41530
This commit is contained in:
ReactOS Portable Systems Group 2009-06-22 10:22:19 +00:00
parent 872b7b4830
commit dba96538b8
2 changed files with 17 additions and 1 deletions

View file

@ -443,6 +443,11 @@ MmArmInitSystem(IN ULONG Phase,
ASSERT((MmNumberOfSystemPtes - OldCount) <= 1000);
DPRINT1("Final System PTE count: %d (%d bytes)\n",
MmNumberOfSystemPtes, MmNumberOfSystemPtes * PAGE_SIZE);
//
// Create the system PTE space
//
MiInitializeSystemPtes(PointerPte, MmNumberOfSystemPtes, SystemPteSpace);
}
//

View file

@ -23,6 +23,7 @@ PMMPTE MmSystemPtesStart[MaximumPtePoolTypes];
PMMPTE MmSystemPtesEnd[MaximumPtePoolTypes];
MMPTE MmFirstFreeSystemPte[MaximumPtePoolTypes];
ULONG MmTotalFreeSystemPtes[MaximumPtePoolTypes];
ULONG MmTotalSystemPtes;
/* PRIVATE FUNCTIONS **********************************************************/
@ -36,7 +37,6 @@ MiInitializeSystemPtes(IN PMMPTE StartingPte,
// Sanity checks
//
ASSERT(NumberOfPtes >= 1);
ASSERT(PoolType == NonPagedPoolExpansion);
//
// Set the starting and ending PTE addresses for this space
@ -71,6 +71,17 @@ MiInitializeSystemPtes(IN PMMPTE StartingPte,
// We also keep a global for it
//
MmTotalFreeSystemPtes[PoolType] = NumberOfPtes;
//
// Check if this is the system PTE space
//
if (PoolType == SystemPteSpace)
{
//
// Remember how many PTEs we have
//
MmTotalSystemPtes = NumberOfPtes;
}
}
/* EOF */