[NTOS:MM]: Don't hardcode Mm tags since we have a #define

svn path=/trunk/; revision=70498
This commit is contained in:
Hermès Bélusca-Maïto 2016-01-05 19:53:07 +00:00
parent e869e42c26
commit d407f4f1e3
5 changed files with 8 additions and 8 deletions

View file

@ -1901,7 +1901,7 @@ MiBuildPagedPool(VOID)
//
MmPagedPoolInfo.PagedPoolAllocationMap = ExAllocatePoolWithTag(NonPagedPool,
Size,
' mM');
TAG_MM);
ASSERT(MmPagedPoolInfo.PagedPoolAllocationMap);
//
@ -1922,7 +1922,7 @@ MiBuildPagedPool(VOID)
//
MmPagedPoolInfo.EndOfPagedPoolBitmap = ExAllocatePoolWithTag(NonPagedPool,
Size,
' mM');
TAG_MM);
ASSERT(MmPagedPoolInfo.EndOfPagedPoolBitmap);
RtlInitializeBitMap(MmPagedPoolInfo.EndOfPagedPoolBitmap,
(PULONG)(MmPagedPoolInfo.EndOfPagedPoolBitmap + 1),
@ -2306,7 +2306,7 @@ MmArmInitSystem(IN ULONG Phase,
//
Bitmap = ExAllocatePoolWithTag(NonPagedPool,
(((MmHighestPhysicalPage + 1) + 31) / 32) * 4,
' mM');
TAG_MM);
if (!Bitmap)
{
//

View file

@ -1353,7 +1353,7 @@ MiInitializeSessionPool(VOID)
/* Allocate and initialize the bitmap to track allocations */
PagedPoolInfo->PagedPoolAllocationMap = ExAllocatePoolWithTag(NonPagedPool,
BitmapSize,
' mM');
TAG_MM);
ASSERT(PagedPoolInfo->PagedPoolAllocationMap != NULL);
RtlInitializeBitMap(PagedPoolInfo->PagedPoolAllocationMap,
(PULONG)(PagedPoolInfo->PagedPoolAllocationMap + 1),
@ -1366,7 +1366,7 @@ MiInitializeSessionPool(VOID)
/* Allocate and initialize the bitmap to track free space */
PagedPoolInfo->EndOfPagedPoolBitmap = ExAllocatePoolWithTag(NonPagedPool,
BitmapSize,
' mM');
TAG_MM);
ASSERT(PagedPoolInfo->EndOfPagedPoolBitmap != NULL);
RtlInitializeBitMap(PagedPoolInfo->EndOfPagedPoolBitmap,
(PULONG)(PagedPoolInfo->EndOfPagedPoolBitmap + 1),

View file

@ -143,7 +143,7 @@ MiInitializeSessionIds(VOID)
BitmapSize = ((Size + 31) / 32) * sizeof(ULONG);
MiSessionIdBitmap = ExAllocatePoolWithTag(PagedPool,
sizeof(RTL_BITMAP) + BitmapSize,
' mM');
TAG_MM);
if (MiSessionIdBitmap)
{
/* Free all the bits */

View file

@ -48,7 +48,7 @@ MiInitializeUserPfnBitmap(VOID)
/* Allocate enough buffer for the PFN bitmap and align it on 32-bits */
Bitmap = ExAllocatePoolWithTag(NonPagedPool,
(((MmHighestPhysicalPage + 1) + 31) / 32) * 4,
' mM');
TAG_MM);
ASSERT(Bitmap);
/* Initialize it and clear all the bits to begin with */

View file

@ -305,7 +305,7 @@ MmInitSystem(IN ULONG Phase,
//
MmSharedUserDataPte = ExAllocatePoolWithTag(PagedPool,
sizeof(MMPTE),
' mM');
TAG_MM);
if (!MmSharedUserDataPte) return FALSE;
//