Skip to content

Commit 29200c4

Browse files
author
Sir Richard
committed
[NTOS]: Setup the template PTE and PDE used on ARM.
svn path=/trunk/; revision=45540
1 parent e815fe3 commit 29200c4

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

reactos/ntoskrnl/mm/arm/page.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/* GLOBALS ********************************************************************/
1616

1717
ULONG MmGlobalKernelPageDirectory[4096];
18-
//MMPTE MiArmTemplatePte, MiArmTemplatePde;
18+
MMPDE HyperTemplatePde;
1919

2020
/* PRIVATE FUNCTIONS **********************************************************/
2121

@@ -248,9 +248,15 @@ MmInitGlobalKernelPageDirectory(VOID)
248248
PULONG CurrentPageDirectory = (PULONG)PDE_BASE;
249249
extern MMPTE HyperTemplatePte;
250250

251-
/* Setup template */
252-
HyperTemplatePte.u.Hard.Valid = HyperTemplatePte.u.Hard.Access = 1;
253-
251+
/* Setup PTE template */
252+
HyperTemplatePte.u.Long = 0;
253+
HyperTemplatePte.u.Hard.Valid = 1;
254+
HyperTemplatePte.u.Hard.Access = 1;
255+
256+
/* Setup PDE template */
257+
HyperTemplatePde.u.Long = 0;
258+
HyperTemplatePde.u.Hard.Valid = 1;
259+
254260
/* Loop the 2GB of address space which belong to the kernel */
255261
for (i = MiGetPdeOffset(MmSystemRangeStart); i < 2048; i++)
256262
{

0 commit comments

Comments
 (0)