mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 00:45:43 +00:00
[NTOS]: Fix MmPt and DOPE tags.
svn path=/trunk/; revision=73171
This commit is contained in:
parent
98ffc124f5
commit
a9c9bed2e2
2 changed files with 7 additions and 5 deletions
4
reactos/ntoskrnl/cache/section/sptab.c
vendored
4
reactos/ntoskrnl/cache/section/sptab.c
vendored
|
@ -71,7 +71,7 @@ NTAPI
|
||||||
MiSectionPageTableAllocate(PRTL_GENERIC_TABLE Table, CLONG Bytes)
|
MiSectionPageTableAllocate(PRTL_GENERIC_TABLE Table, CLONG Bytes)
|
||||||
{
|
{
|
||||||
PVOID Result;
|
PVOID Result;
|
||||||
Result = ExAllocatePoolWithTag(NonPagedPool, Bytes, 'MmPt');
|
Result = ExAllocatePoolWithTag(NonPagedPool, Bytes, 'tPmM');
|
||||||
//DPRINT("MiSectionPageTableAllocate(%d) => %p\n", Bytes, Result);
|
//DPRINT("MiSectionPageTableAllocate(%d) => %p\n", Bytes, Result);
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ NTAPI
|
||||||
MiSectionPageTableFree(PRTL_GENERIC_TABLE Table, PVOID Data)
|
MiSectionPageTableFree(PRTL_GENERIC_TABLE Table, PVOID Data)
|
||||||
{
|
{
|
||||||
//DPRINT("MiSectionPageTableFree(%p)\n", Data);
|
//DPRINT("MiSectionPageTableFree(%p)\n", Data);
|
||||||
ExFreePoolWithTag(Data, 'MmPt');
|
ExFreePoolWithTag(Data, 'tPmM');
|
||||||
}
|
}
|
||||||
|
|
||||||
_Function_class_(RTL_GENERIC_COMPARE_ROUTINE)
|
_Function_class_(RTL_GENERIC_COMPARE_ROUTINE)
|
||||||
|
|
|
@ -27,6 +27,8 @@ KGUARDED_MUTEX PopVolumeLock;
|
||||||
LIST_ENTRY PopVolumeDevices;
|
LIST_ENTRY PopVolumeDevices;
|
||||||
KSPIN_LOCK PopDopeGlobalLock;
|
KSPIN_LOCK PopDopeGlobalLock;
|
||||||
|
|
||||||
|
#define TAG_PO_DOPE 'EPOD'
|
||||||
|
|
||||||
/* PRIVATE FUNCTIONS *********************************************************/
|
/* PRIVATE FUNCTIONS *********************************************************/
|
||||||
|
|
||||||
PDEVICE_OBJECT_POWER_EXTENSION
|
PDEVICE_OBJECT_POWER_EXTENSION
|
||||||
|
@ -45,7 +47,7 @@ PopGetDope(IN PDEVICE_OBJECT DeviceObject)
|
||||||
/* Allocate some dope for the device */
|
/* Allocate some dope for the device */
|
||||||
Dope = ExAllocatePoolWithTag(NonPagedPool,
|
Dope = ExAllocatePoolWithTag(NonPagedPool,
|
||||||
sizeof(DEVICE_OBJECT_POWER_EXTENSION),
|
sizeof(DEVICE_OBJECT_POWER_EXTENSION),
|
||||||
'Dope');
|
TAG_PO_DOPE);
|
||||||
if (!Dope) goto Return;
|
if (!Dope) goto Return;
|
||||||
|
|
||||||
/* Initialize the initial contents of the dope */
|
/* Initialize the initial contents of the dope */
|
||||||
|
@ -69,7 +71,7 @@ PopGetDope(IN PDEVICE_OBJECT DeviceObject)
|
||||||
KeReleaseSpinLock(&PopDopeGlobalLock, OldIrql);
|
KeReleaseSpinLock(&PopDopeGlobalLock, OldIrql);
|
||||||
|
|
||||||
/* Check if someone other than us already assigned the dope, so free ours */
|
/* Check if someone other than us already assigned the dope, so free ours */
|
||||||
if (Dope) ExFreePoolWithTag(Dope, 'Dope');
|
if (Dope) ExFreePoolWithTag(Dope, TAG_PO_DOPE);
|
||||||
|
|
||||||
/* Return the dope to the caller */
|
/* Return the dope to the caller */
|
||||||
Return:
|
Return:
|
||||||
|
@ -140,7 +142,7 @@ PoRemoveVolumeDevice(IN PDEVICE_OBJECT DeviceObject)
|
||||||
KeReleaseSpinLock(&PopDopeGlobalLock, OldIrql);
|
KeReleaseSpinLock(&PopDopeGlobalLock, OldIrql);
|
||||||
|
|
||||||
/* Free dope */
|
/* Free dope */
|
||||||
ExFreePoolWithTag(Dope, 'Dope');
|
ExFreePoolWithTag(Dope, TAG_PO_DOPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue