mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 23:22:40 +00:00
[NTOS:MM]
- Accept memory areas that end at 0xffffffff CORE-11533 svn path=/trunk/; revision=72162
This commit is contained in:
parent
41defc9597
commit
2a05ceca1d
1 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ MmInsertMemoryArea(
|
||||||
marea->VadNode.u.VadFlags.Protection = MiMakeProtectionMask(marea->Protect);
|
marea->VadNode.u.VadFlags.Protection = MiMakeProtectionMask(marea->Protect);
|
||||||
|
|
||||||
/* Build a lame VAD if this is a user-space allocation */
|
/* Build a lame VAD if this is a user-space allocation */
|
||||||
if (MA_GetEndingAddress(marea) < (ULONG_PTR)MmSystemRangeStart)
|
if (marea->EndingVpn + 1 < (ULONG_PTR)MmSystemRangeStart >> PAGE_SHIFT)
|
||||||
{
|
{
|
||||||
ASSERT(Process != NULL);
|
ASSERT(Process != NULL);
|
||||||
if (marea->Type != MEMORY_AREA_OWNED_BY_ARM3)
|
if (marea->Type != MEMORY_AREA_OWNED_BY_ARM3)
|
||||||
|
@ -360,7 +360,7 @@ MmFreeMemoryArea(
|
||||||
//if (MemoryArea->VadNode.StartingVpn < (ULONG_PTR)MmSystemRangeStart >> PAGE_SHIFT
|
//if (MemoryArea->VadNode.StartingVpn < (ULONG_PTR)MmSystemRangeStart >> PAGE_SHIFT
|
||||||
if (MemoryArea->Vad)
|
if (MemoryArea->Vad)
|
||||||
{
|
{
|
||||||
ASSERT(MA_GetEndingAddress(MemoryArea) < (ULONG_PTR)MmSystemRangeStart);
|
ASSERT(MemoryArea->EndingVpn + 1 < (ULONG_PTR)MmSystemRangeStart >> PAGE_SHIFT);
|
||||||
ASSERT(MemoryArea->Type == MEMORY_AREA_SECTION_VIEW || MemoryArea->Type == MEMORY_AREA_CACHE);
|
ASSERT(MemoryArea->Type == MEMORY_AREA_SECTION_VIEW || MemoryArea->Type == MEMORY_AREA_CACHE);
|
||||||
|
|
||||||
/* MmCleanProcessAddressSpace might have removed it (and this would be MmDeleteProcessAdressSpace) */
|
/* MmCleanProcessAddressSpace might have removed it (and this would be MmDeleteProcessAdressSpace) */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue