https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8cfd5c601f354625a11ee…
commit 8cfd5c601f354625a11ee097984cda0c90f93889
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sat Jul 13 15:28:44 2019 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sun Nov 24 18:26:19 2019 +0100
WIP
---
ntoskrnl/mm/ARM3/expool.c | 3 +++
ntoskrnl/mm/ARM3/pool.c | 8 ++++----
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/ntoskrnl/mm/ARM3/expool.c b/ntoskrnl/mm/ARM3/expool.c
index 00c68f4ab19..bbf6e407f09 100644
--- a/ntoskrnl/mm/ARM3/expool.c
+++ b/ntoskrnl/mm/ARM3/expool.c
@@ -2016,6 +2016,9 @@ ExAllocatePoolWithTag(
Tag = ' GIB';
}
ExpInsertPoolTracker(Tag, ROUND_TO_PAGES(NumberOfBytes), OriginalType);
+#if DBG
+ RtlFillMemory(Allocation, NumberOfBytes, 0xCD);
+#endif
return Allocation;
}
diff --git a/ntoskrnl/mm/ARM3/pool.c b/ntoskrnl/mm/ARM3/pool.c
index 995b0ce6347..afafcf823ec 100644
--- a/ntoskrnl/mm/ARM3/pool.c
+++ b/ntoskrnl/mm/ARM3/pool.c
@@ -666,7 +666,7 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
// Return the allocation address to the caller
//
#if DBG
- RtlFillMemory(BaseVa, ROUND_TO_PAGES(SizeInBytes), 0xCD);
+ RtlFillMemoryUlong(BaseVa, ROUND_TO_PAGES(SizeInBytes), 0xABABABAB);
#endif
return BaseVa;
}
@@ -680,7 +680,7 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
if (BaseVa)
{
#if DBG
- RtlFillMemory(BaseVa, ROUND_TO_PAGES(SizeInBytes), 0xCD);
+ RtlFillMemoryUlong(BaseVa, ROUND_TO_PAGES(SizeInBytes), 0xABABABAB);
#endif
return BaseVa;
}
@@ -812,7 +812,7 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
//
KeReleaseQueuedSpinLock(LockQueueMmNonPagedPoolLock, OldIrql);
#if DBG
- RtlFillMemory(BaseVa, ROUND_TO_PAGES(SizeInBytes), 0xCD);
+ RtlFillMemoryUlong(BaseVa, ROUND_TO_PAGES(SizeInBytes), 0xABABABAB);
#endif
return BaseVa;
}
@@ -911,7 +911,7 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
//
BaseVa = MiPteToAddress(StartPte);
#if DBG
- RtlFillMemory(BaseVa, ROUND_TO_PAGES(SizeInBytes), 0xCD);
+ RtlFillMemoryUlong(BaseVa, ROUND_TO_PAGES(SizeInBytes), 0xABABABAB);
#endif
return BaseVa;
}