https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7e941247bde4e3dd1f26b3c38d1eafb7c023180d

commit 7e941247bde4e3dd1f26b3c38d1eafb7c023180d
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Sun Nov 3 23:43:55 2019 +0100
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Sun Nov 3 23:46:54 2019 +0100

    [MM:AMD64] Remove the _WINKD_ around MmDebugPte since it's now used by both 
kd64 (windbg) and KDBG through the usage of mmdbg.c
---
 ntoskrnl/mm/amd64/init.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/ntoskrnl/mm/amd64/init.c b/ntoskrnl/mm/amd64/init.c
index 1f912623a23..0f6ae0eceaa 100644
--- a/ntoskrnl/mm/amd64/init.c
+++ b/ntoskrnl/mm/amd64/init.c
@@ -16,9 +16,7 @@
 
 #include <mm/ARM3/miarm.h>
 
-#ifdef _WINKD_
 extern PMMPTE MmDebugPte;
-#endif
 
 /* Helper macros */
 #define IS_ALIGNED(addr, align) (((ULONG64)(addr) & (align - 1)) == 0)
@@ -258,12 +256,10 @@ MiInitializePageTable(VOID)
     MmLastReservedMappingPte = MiAddressToPte((PVOID)MI_MAPPING_RANGE_END);
     MmFirstReservedMappingPte->u.Hard.PageFrameNumber = MI_HYPERSPACE_PTES;
 
-#ifdef _WINKD_
     /* Setup debug mapping PTE */
     MiMapPPEs((PVOID)MI_DEBUG_MAPPING, (PVOID)MI_DEBUG_MAPPING);
     MiMapPDEs((PVOID)MI_DEBUG_MAPPING, (PVOID)MI_DEBUG_MAPPING);
     MmDebugPte = MiAddressToPte((PVOID)MI_DEBUG_MAPPING);
-#endif
 
     /* Setup PDE and PTEs for VAD bitmap and working set list */
     MiMapPDEs((PVOID)MI_VAD_BITMAP, (PVOID)(MI_WORKING_SET_LIST + PAGE_SIZE - 
1));

Reply via email to