* Used tagged memory for rmap entries.
authorHartmut Birr <osexpert@googlemail.com>
Tue, 5 Nov 2002 20:48:08 +0000 (20:48 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Tue, 5 Nov 2002 20:48:08 +0000 (20:48 +0000)
svn path=/trunk/; revision=3705

reactos/ntoskrnl/mm/rmap.c

index d563f36..8537b98 100644 (file)
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: rmap.c,v 1.12 2002/09/08 10:23:36 chorns Exp $
+/* $Id: rmap.c,v 1.13 2002/11/05 20:48:08 hbirr Exp $
  *
  * COPYRIGHT:   See COPYING in the top directory
  * PROJECT:     ReactOS kernel 
@@ -45,6 +45,8 @@ typedef struct _MM_RMAP_ENTRY
   PVOID Address;
 } MM_RMAP_ENTRY, *PMM_RMAP_ENTRY;
 
+#define TAG_RMAP    TAG('R', 'M', 'A', 'P')
+
 /* GLOBALS ******************************************************************/
 
 static FAST_MUTEX RmapListLock;
@@ -353,7 +355,7 @@ MmInsertRmap(PHYSICAL_ADDRESS PhysicalAddress, PEPROCESS Process,
 
   Address = (PVOID)PAGE_ROUND_DOWN(Address);
 
-  new_entry = ExAllocatePool(NonPagedPool, sizeof(MM_RMAP_ENTRY));
+  new_entry = ExAllocatePoolWithTag(NonPagedPool, sizeof(MM_RMAP_ENTRY), TAG_RMAP);
   if (new_entry == NULL)
     {
       KeBugCheck(0);