[NTOS]: Stop handling PEB/TEB MAREAs since they're not used anymore.
authorSir Richard <sir_richard@svn.reactos.org>
Thu, 22 Jul 2010 20:48:04 +0000 (20:48 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Thu, 22 Jul 2010 20:48:04 +0000 (20:48 +0000)
svn path=/trunk/; revision=48200

reactos/ntoskrnl/mm/rmap.c

index d389ab4..35b4b57 100644 (file)
@@ -149,7 +149,7 @@ MmWritePagePhysicalAddress(PFN_NUMBER Page)
       Status = MmWritePageSectionView(AddressSpace, MemoryArea,
                                       Address, PageOp);
    }
-   else if ((Type == MEMORY_AREA_VIRTUAL_MEMORY) || (Type == MEMORY_AREA_PEB_OR_TEB))
+   else if (Type == MEMORY_AREA_VIRTUAL_MEMORY)
    {
       PageOp = MmGetPageOp(MemoryArea, Address < MmSystemRangeStart ? Process->UniqueProcessId : NULL,
                            Address, NULL, 0, MM_PAGEOP_PAGEOUT, TRUE);
@@ -274,7 +274,7 @@ MmPageOutPhysicalAddress(PFN_NUMBER Page)
       Status = MmPageOutSectionView(AddressSpace, MemoryArea,
                                     Address, PageOp);
    }
-   else if ((Type == MEMORY_AREA_VIRTUAL_MEMORY) || (Type == MEMORY_AREA_PEB_OR_TEB))
+   else if (Type == MEMORY_AREA_VIRTUAL_MEMORY)
    {
       PageOp = MmGetPageOp(MemoryArea, Address < MmSystemRangeStart ? Process->UniqueProcessId : NULL,
                            Address, NULL, 0, MM_PAGEOP_PAGEOUT, TRUE);