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

View file

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

View file

@ -143,7 +143,7 @@ MiInitializeSessionIds(VOID)
BitmapSize = ((Size + 31) / 32) * sizeof(ULONG); BitmapSize = ((Size + 31) / 32) * sizeof(ULONG);
MiSessionIdBitmap = ExAllocatePoolWithTag(PagedPool, MiSessionIdBitmap = ExAllocatePoolWithTag(PagedPool,
sizeof(RTL_BITMAP) + BitmapSize, sizeof(RTL_BITMAP) + BitmapSize,
' mM'); TAG_MM);
if (MiSessionIdBitmap) if (MiSessionIdBitmap)
{ {
/* Free all the bits */ /* 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 */ /* Allocate enough buffer for the PFN bitmap and align it on 32-bits */
Bitmap = ExAllocatePoolWithTag(NonPagedPool, Bitmap = ExAllocatePoolWithTag(NonPagedPool,
(((MmHighestPhysicalPage + 1) + 31) / 32) * 4, (((MmHighestPhysicalPage + 1) + 31) / 32) * 4,
' mM'); TAG_MM);
ASSERT(Bitmap); ASSERT(Bitmap);
/* Initialize it and clear all the bits to begin with */ /* Initialize it and clear all the bits to begin with */

View file

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