Author: sir_richard
Date: Tue Feb 9 23:53:41 2010
New Revision: 45540
URL:
http://svn.reactos.org/svn/reactos?rev=45540&view=rev
Log:
[NTOS]: Setup the template PTE and PDE used on ARM.
Modified:
trunk/reactos/ntoskrnl/mm/arm/page.c
Modified: trunk/reactos/ntoskrnl/mm/arm/page.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/arm/page.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/arm/page.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/arm/page.c [iso-8859-1] Tue Feb 9 23:53:41 2010
@@ -15,7 +15,7 @@
/* GLOBALS ********************************************************************/
ULONG MmGlobalKernelPageDirectory[4096];
-//MMPTE MiArmTemplatePte, MiArmTemplatePde;
+MMPDE HyperTemplatePde;
/* PRIVATE FUNCTIONS **********************************************************/
@@ -248,9 +248,15 @@
PULONG CurrentPageDirectory = (PULONG)PDE_BASE;
extern MMPTE HyperTemplatePte;
- /* Setup template */
- HyperTemplatePte.u.Hard.Valid = HyperTemplatePte.u.Hard.Access = 1;
-
+ /* Setup PTE template */
+ HyperTemplatePte.u.Long = 0;
+ HyperTemplatePte.u.Hard.Valid = 1;
+ HyperTemplatePte.u.Hard.Access = 1;
+
+ /* Setup PDE template */
+ HyperTemplatePde.u.Long = 0;
+ HyperTemplatePde.u.Hard.Valid = 1;
+
/* Loop the 2GB of address space which belong to the kernel */
for (i = MiGetPdeOffset(MmSystemRangeStart); i < 2048; i++)
{