mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:16:07 +00:00
[NTOS]: If the memory area is owned by ARM3, and it's being freed, don't touch the pages, just unlink it and free the memory. This is useful for MAREAs being used by ARM3 to protect pieces of address space from the Ros Mm Allocator, but when we don't want it to start playing with our pages. When we do free those MAREAs, keep it away!
svn path=/trunk/; revision=48163
This commit is contained in:
parent
ce8b9f4fcb
commit
e6cdd4d0fd
1 changed files with 45 additions and 41 deletions
|
@ -732,6 +732,9 @@ MmFreeMemoryArea(
|
|||
PMEMORY_AREA *ParentReplace;
|
||||
ULONG_PTR Address;
|
||||
PVOID EndAddress;
|
||||
|
||||
if (MemoryArea->Type != MEMORY_AREA_OWNED_BY_ARM3)
|
||||
{
|
||||
PEPROCESS CurrentProcess = PsGetCurrentProcess();
|
||||
PEPROCESS Process = MmGetAddressSpaceOwner(AddressSpace);
|
||||
|
||||
|
@ -777,6 +780,7 @@ MmFreeMemoryArea(
|
|||
{
|
||||
KeDetachProcess();
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove the tree item. */
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue