From 29200c4aa6de62b2115173472a7a1cfe03dee31c Mon Sep 17 00:00:00 2001 From: Sir Richard Date: Tue, 9 Feb 2010 22:53:41 +0000 Subject: [PATCH] [NTOS]: Setup the template PTE and PDE used on ARM. svn path=/trunk/; revision=45540 --- reactos/ntoskrnl/mm/arm/page.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/reactos/ntoskrnl/mm/arm/page.c b/reactos/ntoskrnl/mm/arm/page.c index 30969fd5c87..27761ec18b1 100644 --- a/reactos/ntoskrnl/mm/arm/page.c +++ b/reactos/ntoskrnl/mm/arm/page.c @@ -15,7 +15,7 @@ /* GLOBALS ********************************************************************/ ULONG MmGlobalKernelPageDirectory[4096]; -//MMPTE MiArmTemplatePte, MiArmTemplatePde; +MMPDE HyperTemplatePde; /* PRIVATE FUNCTIONS **********************************************************/ @@ -248,9 +248,15 @@ MmInitGlobalKernelPageDirectory(VOID) 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++) {