Author: tkreuzer
Date: Sun Nov 22 20:16:50 2009
New Revision: 44268
URL:
http://svn.reactos.org/svn/reactos?rev=44268&view=rev
Log:
[MM]
Use an array of PFN_NUMBER to pass to MiMapPagesToZeroInHyperSpace instead of MMPFNs which
were then converted to PFN_NUMBERs.
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/mm.h
branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/hypermap.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/mm.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/mm.h [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/mm.h [iso-8859-1] Sun Nov
22 20:16:50 2009
@@ -1223,7 +1223,7 @@
PVOID
NTAPI
-MiMapPagesToZeroInHyperSpace(IN PMMPFN *Pages,
+MiMapPagesToZeroInHyperSpace(IN PFN_NUMBER *Pages,
IN PFN_NUMBER NumberOfPages);
VOID
@@ -1246,8 +1246,7 @@
PVOID
MiMapPageToZeroInHyperSpace(IN PFN_NUMBER Page)
{
- PMMPFN Pfn1 = MiGetPfnEntry(Page);
- return MiMapPagesToZeroInHyperSpace(&Pfn1, 1);
+ return MiMapPagesToZeroInHyperSpace(&Page, 1);
}
#define MmDeleteHyperspaceMapping(x) MiUnmapPageInHyperSpace(HyperProcess, x,
HyperIrql);
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/hypermap.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/hypermap.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ARM3/hypermap.c [iso-8859-1] Sun Nov 22
20:16:50 2009
@@ -114,13 +114,12 @@
PVOID
NTAPI
-MiMapPagesToZeroInHyperSpace(IN PMMPFN *Pages,
+MiMapPagesToZeroInHyperSpace(IN PFN_NUMBER *Pages,
IN PFN_NUMBER NumberOfPages)
{
MMPTE TempPte;
PMMPTE PointerPte;
PFN_NUMBER Offset, PageFrameIndex;
- PMMPFN Page;
//
// Sanity checks
@@ -164,8 +163,7 @@
//
// Get the first page entry and its PFN
//
- Page = *Pages++;
- PageFrameIndex = MiGetPfnEntryIndex(Page);
+ PageFrameIndex = *Pages++;
//
// Write the PFN