mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
[MM]
Use an array of PFN_NUMBER to pass to MiMapPagesToZeroInHyperSpace instead of MMPFNs which were then converted to PFN_NUMBERs. svn path=/branches/ros-amd64-bringup/; revision=44268
This commit is contained in:
@@ -1223,7 +1223,7 @@ MiUnmapPageInHyperSpace(IN PEPROCESS Process,
|
||||
|
||||
PVOID
|
||||
NTAPI
|
||||
MiMapPagesToZeroInHyperSpace(IN PMMPFN *Pages,
|
||||
MiMapPagesToZeroInHyperSpace(IN PFN_NUMBER *Pages,
|
||||
IN PFN_NUMBER NumberOfPages);
|
||||
|
||||
VOID
|
||||
@@ -1246,8 +1246,7 @@ FORCEINLINE
|
||||
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);
|
||||
|
||||
@@ -114,13 +114,12 @@ MiUnmapPageInHyperSpace(IN PEPROCESS Process,
|
||||
|
||||
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 @@ MiMapPagesToZeroInHyperSpace(IN PMMPFN *Pages,
|
||||
//
|
||||
// Get the first page entry and its PFN
|
||||
//
|
||||
Page = *Pages++;
|
||||
PageFrameIndex = MiGetPfnEntryIndex(Page);
|
||||
PageFrameIndex = *Pages++;
|
||||
|
||||
//
|
||||
// Write the PFN
|
||||
|
||||
Reference in New Issue
Block a user