[NTOSKRNL]
authorCameron Gutman <aicommander@gmail.com>
Mon, 19 Dec 2011 18:44:47 +0000 (18:44 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 19 Dec 2011 18:44:47 +0000 (18:44 +0000)
- "Hyperspace is local!": OK, system PTE space isn't…
- Change the function name to reflect the real location of the mapping and match its partner MiUnmapPagesInZeroSpace()

svn path=/trunk/; revision=54700

reactos/ntoskrnl/include/internal/mm.h
reactos/ntoskrnl/mm/ARM3/hypermap.c
reactos/ntoskrnl/mm/ARM3/zeropage.c

index 6e01e22..22745c6 100644 (file)
@@ -1261,8 +1261,8 @@ MiUnmapPageInHyperSpace(IN PEPROCESS Process,
 
 PVOID
 NTAPI
-MiMapPagesToZeroInHyperSpace(IN PMMPFN Pfn1,
-                             IN PFN_NUMBER NumberOfPages);
+MiMapPagesInZeroSpace(IN PMMPFN Pfn1,
+                      IN PFN_NUMBER NumberOfPages);
 
 VOID
 NTAPI
index d619c2b..f28c8b1 100644 (file)
@@ -111,8 +111,8 @@ MiUnmapPageInHyperSpace(IN PEPROCESS Process,
 
 PVOID
 NTAPI
-MiMapPagesToZeroInHyperSpace(IN PMMPFN Pfn1,
-                             IN PFN_NUMBER NumberOfPages)
+MiMapPagesInZeroSpace(IN PMMPFN Pfn1,
+                      IN PFN_NUMBER NumberOfPages)
 {
     MMPTE TempPte;
     PMMPTE PointerPte;
@@ -152,7 +152,6 @@ MiMapPagesToZeroInHyperSpace(IN PMMPFN Pfn1,
     /* Choose the correct PTE to use, and which template */
     PointerPte += (Offset + 1);
     TempPte = ValidKernelPte;
-    MI_MAKE_LOCAL_PAGE(&TempPte); // Hyperspace is local!
 
     /* Make sure the list isn't empty and loop it */
     ASSERT(Pfn1 != (PVOID)LIST_HEAD);
index 73d80a2..a36c9fb 100644 (file)
@@ -87,7 +87,7 @@ MmZeroPageThread(VOID)
             Pfn1->u1.Flink = LIST_HEAD;
             KeReleaseQueuedSpinLock(LockQueuePfnLock, OldIrql);
 
-            ZeroAddress = MiMapPagesToZeroInHyperSpace(Pfn1, 1);
+            ZeroAddress = MiMapPagesInZeroSpace(Pfn1, 1);
             ASSERT(ZeroAddress);
             RtlZeroMemory(ZeroAddress, PAGE_SIZE);
             MiUnmapPagesInZeroSpace(ZeroAddress, 1);