[NTOS]: To Timo, with Love (make System PTEs work on x64).

svn path=/trunk/; revision=48192
This commit is contained in:
Sir Richard 2010-07-22 18:55:36 +00:00
parent 7fa909a601
commit 135986ec2e
2 changed files with 4 additions and 1 deletions

View file

@ -33,6 +33,9 @@
#define MI_NONPAGED_POOL_END (PVOID)0xFFBE0000
#define MI_DEBUG_MAPPING (PVOID)0xFFBFF000
// on AMD64 this would be MiAddressToPte(MM_KSEG0_BASE)
#define MI_SYSTEM_PTE_BASE (PVOID)MiAddressToPte(NULL)
#define MI_MIN_SECONDARY_COLORS 8
#define MI_SECONDARY_COLORS 64
#define MI_MAX_SECONDARY_COLORS 1024

View file

@ -378,7 +378,7 @@ MiInitializeSystemPtes(IN PMMPTE StartingPte,
//
// Set the starting and ending PTE addresses for this space
//
MmSystemPteBase = (PVOID)PTE_BASE;
MmSystemPteBase = MI_SYSTEM_PTE_BASE;
MmSystemPtesStart[PoolType] = StartingPte;
MmSystemPtesEnd[PoolType] = StartingPte + NumberOfPtes - 1;
DPRINT("System PTE space for %d starting at: %p and ending at: %p\n",