[NTOS]: Setup the template PTE and PDE used on ARM.

svn path=/trunk/; revision=45540
This commit is contained in:
Sir Richard 2010-02-09 22:53:41 +00:00
parent e815fe376b
commit 29200c4aa6

View file

@ -15,7 +15,7 @@
/* GLOBALS ********************************************************************/ /* GLOBALS ********************************************************************/
ULONG MmGlobalKernelPageDirectory[4096]; ULONG MmGlobalKernelPageDirectory[4096];
//MMPTE MiArmTemplatePte, MiArmTemplatePde; MMPDE HyperTemplatePde;
/* PRIVATE FUNCTIONS **********************************************************/ /* PRIVATE FUNCTIONS **********************************************************/
@ -248,8 +248,14 @@ MmInitGlobalKernelPageDirectory(VOID)
PULONG CurrentPageDirectory = (PULONG)PDE_BASE; PULONG CurrentPageDirectory = (PULONG)PDE_BASE;
extern MMPTE HyperTemplatePte; extern MMPTE HyperTemplatePte;
/* Setup template */ /* Setup PTE template */
HyperTemplatePte.u.Hard.Valid = HyperTemplatePte.u.Hard.Access = 1; 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 */ /* Loop the 2GB of address space which belong to the kernel */
for (i = MiGetPdeOffset(MmSystemRangeStart); i < 2048; i++) for (i = MiGetPdeOffset(MmSystemRangeStart); i < 2048; i++)