mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[NTOS]: Setup the template PTE and PDE used on ARM.
svn path=/trunk/; revision=45540
This commit is contained in:
parent
e815fe376b
commit
29200c4aa6
1 changed files with 10 additions and 4 deletions
|
@ -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++)
|
||||||
|
|
Loading…
Reference in a new issue