[ros-diffs] [cgutman] 41248: - Use MmFreeContiguousMemorySpecifyCache to free memory allocated by MmAllocateContiguousMemorySpecifyCache in HalAllocateCommonBuffer
cgutman at svn.reactos.org
cgutman at svn.reactos.org
Tue Jun 2 03:30:53 CEST 2009
Author: cgutman
Date: Tue Jun 2 05:30:52 2009
New Revision: 41248
URL: http://svn.reactos.org/svn/reactos?rev=41248&view=rev
Log:
- Use MmFreeContiguousMemorySpecifyCache to free memory allocated by MmAllocateContiguousMemorySpecifyCache in HalAllocateCommonBuffer
Modified:
trunk/reactos/hal/halx86/generic/dma.c
Modified: trunk/reactos/hal/halx86/generic/dma.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/dma.c?rev=41248&r1=41247&r2=41248&view=diff
==============================================================================
--- trunk/reactos/hal/halx86/generic/dma.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/generic/dma.c [iso-8859-1] Tue Jun 2 05:30:52 2009
@@ -903,7 +903,9 @@
PVOID VirtualAddress,
BOOLEAN CacheEnabled)
{
- MmFreeContiguousMemory(VirtualAddress);
+ MmFreeContiguousMemorySpecifyCache(VirtualAddress,
+ Length,
+ CacheEnabled ? MmCached : MmNonCached);
}
/**
More information about the Ros-diffs
mailing list