Author: ros-arm-bringup
Date: Mon Jun 22 14:22:19 2009
New Revision: 41530
URL:
http://svn.reactos.org/svn/reactos?rev=41530&view=rev
Log:
- Initialize system PTE space.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/init.c
trunk/reactos/ntoskrnl/mm/ARM3/syspte.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/init.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/init.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/init.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/init.c [iso-8859-1] Mon Jun 22 14:22:19 2009
@@ -443,6 +443,11 @@
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);
}
//
Modified: trunk/reactos/ntoskrnl/mm/ARM3/syspte.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/syspte.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/syspte.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/syspte.c [iso-8859-1] Mon Jun 22 14:22:19 2009
@@ -23,6 +23,7 @@
PMMPTE MmSystemPtesEnd[MaximumPtePoolTypes];
MMPTE MmFirstFreeSystemPte[MaximumPtePoolTypes];
ULONG MmTotalFreeSystemPtes[MaximumPtePoolTypes];
+ULONG MmTotalSystemPtes;
/* PRIVATE FUNCTIONS **********************************************************/
@@ -36,7 +37,6 @@
// Sanity checks
//
ASSERT(NumberOfPtes >= 1);
- ASSERT(PoolType == NonPagedPoolExpansion);
//
// Set the starting and ending PTE addresses for this space
@@ -71,6 +71,17 @@
// 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 */