mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +00:00
[NTOSKRNL]
- "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
This commit is contained in:
parent
c073996652
commit
235496f021
3 changed files with 5 additions and 6 deletions
|
@ -1261,8 +1261,8 @@ MiUnmapPageInHyperSpace(IN PEPROCESS Process,
|
||||||
|
|
||||||
PVOID
|
PVOID
|
||||||
NTAPI
|
NTAPI
|
||||||
MiMapPagesToZeroInHyperSpace(IN PMMPFN Pfn1,
|
MiMapPagesInZeroSpace(IN PMMPFN Pfn1,
|
||||||
IN PFN_NUMBER NumberOfPages);
|
IN PFN_NUMBER NumberOfPages);
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
|
|
@ -111,8 +111,8 @@ MiUnmapPageInHyperSpace(IN PEPROCESS Process,
|
||||||
|
|
||||||
PVOID
|
PVOID
|
||||||
NTAPI
|
NTAPI
|
||||||
MiMapPagesToZeroInHyperSpace(IN PMMPFN Pfn1,
|
MiMapPagesInZeroSpace(IN PMMPFN Pfn1,
|
||||||
IN PFN_NUMBER NumberOfPages)
|
IN PFN_NUMBER NumberOfPages)
|
||||||
{
|
{
|
||||||
MMPTE TempPte;
|
MMPTE TempPte;
|
||||||
PMMPTE PointerPte;
|
PMMPTE PointerPte;
|
||||||
|
@ -152,7 +152,6 @@ MiMapPagesToZeroInHyperSpace(IN PMMPFN Pfn1,
|
||||||
/* Choose the correct PTE to use, and which template */
|
/* Choose the correct PTE to use, and which template */
|
||||||
PointerPte += (Offset + 1);
|
PointerPte += (Offset + 1);
|
||||||
TempPte = ValidKernelPte;
|
TempPte = ValidKernelPte;
|
||||||
MI_MAKE_LOCAL_PAGE(&TempPte); // Hyperspace is local!
|
|
||||||
|
|
||||||
/* Make sure the list isn't empty and loop it */
|
/* Make sure the list isn't empty and loop it */
|
||||||
ASSERT(Pfn1 != (PVOID)LIST_HEAD);
|
ASSERT(Pfn1 != (PVOID)LIST_HEAD);
|
||||||
|
|
|
@ -87,7 +87,7 @@ MmZeroPageThread(VOID)
|
||||||
Pfn1->u1.Flink = LIST_HEAD;
|
Pfn1->u1.Flink = LIST_HEAD;
|
||||||
KeReleaseQueuedSpinLock(LockQueuePfnLock, OldIrql);
|
KeReleaseQueuedSpinLock(LockQueuePfnLock, OldIrql);
|
||||||
|
|
||||||
ZeroAddress = MiMapPagesToZeroInHyperSpace(Pfn1, 1);
|
ZeroAddress = MiMapPagesInZeroSpace(Pfn1, 1);
|
||||||
ASSERT(ZeroAddress);
|
ASSERT(ZeroAddress);
|
||||||
RtlZeroMemory(ZeroAddress, PAGE_SIZE);
|
RtlZeroMemory(ZeroAddress, PAGE_SIZE);
|
||||||
MiUnmapPagesInZeroSpace(ZeroAddress, 1);
|
MiUnmapPagesInZeroSpace(ZeroAddress, 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue