mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 07:28:19 +00:00
[NTOS/MM]
- Do not mark VAD as private memory when creating a MEMORY_AREA, as this is never the case (only used for sections) - Add a few DPRINTS. CORE-8140 #resolve fixed with r63618 svn path=/trunk/; revision=63618
This commit is contained in:
parent
36de38c3a6
commit
7fade28911
2 changed files with 7 additions and 1 deletions
|
@ -4398,6 +4398,9 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
|||
}
|
||||
}
|
||||
|
||||
DPRINT("NtAllocateVirtualMemory: Process 0x%p, Address 0x%p, Zerobits %lu , RegionSize 0x%x, Allocation type 0x%x, Protect 0x%x.\n",
|
||||
Process, PBaseAddress, ZeroBits, PRegionSize, AllocationType, Protect);
|
||||
|
||||
//
|
||||
// Check for large page allocations and make sure that the required privilege
|
||||
// is being held, before attempting to handle them.
|
||||
|
@ -4656,6 +4659,7 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
|||
//
|
||||
}
|
||||
_SEH2_END;
|
||||
DPRINT("Reserved %x bytes at %p.\n", PRegionSize, StartingAddress);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -5153,6 +5157,9 @@ NtFreeVirtualMemory(IN HANDLE ProcessHandle,
|
|||
}
|
||||
}
|
||||
|
||||
DPRINT("NtFreeVirtualMemory: Process 0x%p, Adress 0x%p, size 0x%x, FreeType %x.\n",
|
||||
Process, PBaseAddress, PRegionSize, FreeType);
|
||||
|
||||
//
|
||||
// Lock the address space
|
||||
//
|
||||
|
|
|
@ -399,7 +399,6 @@ MmInsertMemoryArea(
|
|||
Vad->EndingVpn = Vad->StartingVpn;
|
||||
}
|
||||
Vad->u.VadFlags.Spare = 1;
|
||||
Vad->u.VadFlags.PrivateMemory = 1;
|
||||
Vad->u.VadFlags.Protection = MiMakeProtectionMask(marea->Protect);
|
||||
|
||||
/* Insert the VAD */
|
||||
|
|
Loading…
Reference in a new issue