File tree 1 file changed +10
-4
lines changed 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 15
15
/* GLOBALS ********************************************************************/
16
16
17
17
ULONG MmGlobalKernelPageDirectory [4096 ];
18
- //MMPTE MiArmTemplatePte, MiArmTemplatePde ;
18
+ MMPDE HyperTemplatePde ;
19
19
20
20
/* PRIVATE FUNCTIONS **********************************************************/
21
21
@@ -248,9 +248,15 @@ MmInitGlobalKernelPageDirectory(VOID)
248
248
PULONG CurrentPageDirectory = (PULONG )PDE_BASE ;
249
249
extern MMPTE HyperTemplatePte ;
250
250
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
+
254
260
/* Loop the 2GB of address space which belong to the kernel */
255
261
for (i = MiGetPdeOffset (MmSystemRangeStart ); i < 2048 ; i ++ )
256
262
{
You can’t perform that action at this time.
0 commit comments