Author: sir_richard
Date: Wed Oct 6 13:32:58 2010
New Revision: 49016
URL:
http://svn.reactos.org/svn/reactos?rev=49016&view=rev
Log:
[NTOS]: Temporary debugging.
Modified:
trunk/reactos/ntoskrnl/mm/marea.c
Modified: trunk/reactos/ntoskrnl/mm/marea.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/marea.c?rev=49…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/marea.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/marea.c [iso-8859-1] Wed Oct 6 13:32:58 2010
@@ -375,6 +375,10 @@
RtlZeroMemory(Vad, sizeof(MMVAD));
Vad->StartingVpn = PAGE_ROUND_DOWN(marea->StartingAddress) >>
PAGE_SHIFT;
Vad->EndingVpn = PAGE_ROUND_DOWN((ULONG_PTR)marea->EndingAddress - 1)
>> PAGE_SHIFT;
+ if (Vad->EndingVpn < Vad->StartingVpn)
+ {
+ DPRINT1("Building a broken VAD. Data: %p %p %lx %lx\n",
marea->StartingAddress, marea->EndingAddress, Vad->StartingVpn,
Vad->EndingVpn);
+ }
Vad->u.VadFlags.Spare = 1;
Vad->u.VadFlags.PrivateMemory = 1;
MiInsertVad(Vad, MmGetAddressSpaceOwner(AddressSpace));