mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[HAL]
replace ' laH' by TAG_HAL svn path=/trunk/; revision=68105
This commit is contained in:
parent
67e8c26969
commit
658c64a7fe
6 changed files with 21 additions and 21 deletions
|
@ -656,7 +656,7 @@ HalpQueryPciRegistryInfo(VOID)
|
||||||
/* Allocate the return structure */
|
/* Allocate the return structure */
|
||||||
PciRegistryInfo = ExAllocatePoolWithTag(NonPagedPool,
|
PciRegistryInfo = ExAllocatePoolWithTag(NonPagedPool,
|
||||||
sizeof(PCI_REGISTRY_INFO_INTERNAL),
|
sizeof(PCI_REGISTRY_INFO_INTERNAL),
|
||||||
' laH');
|
TAG_HAL);
|
||||||
if (!PciRegistryInfo) return NULL;
|
if (!PciRegistryInfo) return NULL;
|
||||||
|
|
||||||
/* Fill it out */
|
/* Fill it out */
|
||||||
|
|
|
@ -118,7 +118,7 @@ HalpAcpiCopyBiosTable(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Use Mm pool */
|
/* Use Mm pool */
|
||||||
CachedTable = ExAllocatePoolWithTag(NonPagedPool, Size, ' laH');
|
CachedTable = ExAllocatePoolWithTag(NonPagedPool, Size, TAG_HAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do we have the cached table? */
|
/* Do we have the cached table? */
|
||||||
|
@ -1022,7 +1022,7 @@ HalpQueryAcpiResourceRequirements(OUT PIO_RESOURCE_REQUIREMENTS_LIST *Requiremen
|
||||||
ListSize = FIELD_OFFSET(IO_RESOURCE_REQUIREMENTS_LIST, List[0].Descriptors) +
|
ListSize = FIELD_OFFSET(IO_RESOURCE_REQUIREMENTS_LIST, List[0].Descriptors) +
|
||||||
(Count * sizeof(IO_RESOURCE_DESCRIPTOR));
|
(Count * sizeof(IO_RESOURCE_DESCRIPTOR));
|
||||||
DPRINT("Resource list size: %d\n", ListSize);
|
DPRINT("Resource list size: %d\n", ListSize);
|
||||||
RequirementsList = ExAllocatePoolWithTag(PagedPool, ListSize, ' laH');
|
RequirementsList = ExAllocatePoolWithTag(PagedPool, ListSize, TAG_HAL);
|
||||||
if (RequirementsList)
|
if (RequirementsList)
|
||||||
{
|
{
|
||||||
/* Initialize it */
|
/* Initialize it */
|
||||||
|
@ -1042,7 +1042,7 @@ HalpQueryAcpiResourceRequirements(OUT PIO_RESOURCE_REQUIREMENTS_LIST *Requiremen
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Fail */
|
/* Fail */
|
||||||
ExFreePoolWithTag(RequirementsList, ' laH');
|
ExFreePoolWithTag(RequirementsList, TAG_HAL);
|
||||||
Status = STATUS_NO_SUCH_DEVICE;
|
Status = STATUS_NO_SUCH_DEVICE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -218,7 +218,7 @@ HalpQueryDeviceRelations(IN PDEVICE_OBJECT DeviceObject,
|
||||||
FIELD_OFFSET(DEVICE_RELATIONS,
|
FIELD_OFFSET(DEVICE_RELATIONS,
|
||||||
Objects) +
|
Objects) +
|
||||||
sizeof(PDEVICE_OBJECT) * PdoCount,
|
sizeof(PDEVICE_OBJECT) * PdoCount,
|
||||||
' laH');
|
TAG_HAL);
|
||||||
if (!FdoRelations) return STATUS_INSUFFICIENT_RESOURCES;
|
if (!FdoRelations) return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
/* Save our count */
|
/* Save our count */
|
||||||
|
@ -275,7 +275,7 @@ HalpQueryDeviceRelations(IN PDEVICE_OBJECT DeviceObject,
|
||||||
/* Only one entry */
|
/* Only one entry */
|
||||||
PdoRelations = ExAllocatePoolWithTag(PagedPool,
|
PdoRelations = ExAllocatePoolWithTag(PagedPool,
|
||||||
sizeof(DEVICE_RELATIONS),
|
sizeof(DEVICE_RELATIONS),
|
||||||
' laH');
|
TAG_HAL);
|
||||||
if (!PdoRelations) return STATUS_INSUFFICIENT_RESOURCES;
|
if (!PdoRelations) return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
/* Fill it out and reference us */
|
/* Fill it out and reference us */
|
||||||
|
@ -376,12 +376,12 @@ HalpQueryResources(IN PDEVICE_OBJECT DeviceObject,
|
||||||
/* Allocate the resourcel ist */
|
/* Allocate the resourcel ist */
|
||||||
ResourceList = ExAllocatePoolWithTag(PagedPool,
|
ResourceList = ExAllocatePoolWithTag(PagedPool,
|
||||||
sizeof(CM_RESOURCE_LIST),
|
sizeof(CM_RESOURCE_LIST),
|
||||||
' laH');
|
TAG_HAL);
|
||||||
if (!ResourceList )
|
if (!ResourceList )
|
||||||
{
|
{
|
||||||
/* Fail, no memory */
|
/* Fail, no memory */
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
ExFreePoolWithTag(RequirementsList, ' laH');
|
ExFreePoolWithTag(RequirementsList, TAG_HAL);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -425,7 +425,7 @@ HalpQueryResources(IN PDEVICE_OBJECT DeviceObject,
|
||||||
/* Return resources and success */
|
/* Return resources and success */
|
||||||
*Resources = ResourceList;
|
*Resources = ResourceList;
|
||||||
|
|
||||||
ExFreePoolWithTag(RequirementsList, ' laH');
|
ExFreePoolWithTag(RequirementsList, TAG_HAL);
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -541,7 +541,7 @@ HalpQueryIdPdo(IN PDEVICE_OBJECT DeviceObject,
|
||||||
/* Allocate the buffer */
|
/* Allocate the buffer */
|
||||||
Buffer = ExAllocatePoolWithTag(PagedPool,
|
Buffer = ExAllocatePoolWithTag(PagedPool,
|
||||||
Length + sizeof(UNICODE_NULL),
|
Length + sizeof(UNICODE_NULL),
|
||||||
' laH');
|
TAG_HAL);
|
||||||
if (Buffer)
|
if (Buffer)
|
||||||
{
|
{
|
||||||
/* Copy the string and null-terminate it */
|
/* Copy the string and null-terminate it */
|
||||||
|
@ -607,7 +607,7 @@ HalpQueryIdFdo(IN PDEVICE_OBJECT DeviceObject,
|
||||||
/* Allocate the buffer */
|
/* Allocate the buffer */
|
||||||
Buffer = ExAllocatePoolWithTag(PagedPool,
|
Buffer = ExAllocatePoolWithTag(PagedPool,
|
||||||
Length + sizeof(UNICODE_NULL),
|
Length + sizeof(UNICODE_NULL),
|
||||||
' laH');
|
TAG_HAL);
|
||||||
if (Buffer)
|
if (Buffer)
|
||||||
{
|
{
|
||||||
/* Copy the string and null-terminate it */
|
/* Copy the string and null-terminate it */
|
||||||
|
|
|
@ -261,8 +261,8 @@ HalpReportResourceUsage(IN PUNICODE_STRING HalName,
|
||||||
HalpBuildAddressMap();
|
HalpBuildAddressMap();
|
||||||
|
|
||||||
/* Allocate the master raw and translated lists */
|
/* Allocate the master raw and translated lists */
|
||||||
RawList = ExAllocatePoolWithTag(NonPagedPool, PAGE_SIZE * 2, ' laH');
|
RawList = ExAllocatePoolWithTag(NonPagedPool, PAGE_SIZE * 2, TAG_HAL);
|
||||||
TranslatedList = ExAllocatePoolWithTag(NonPagedPool, PAGE_SIZE * 2, ' laH');
|
TranslatedList = ExAllocatePoolWithTag(NonPagedPool, PAGE_SIZE * 2, TAG_HAL);
|
||||||
if (!(RawList) || !(TranslatedList))
|
if (!(RawList) || !(TranslatedList))
|
||||||
{
|
{
|
||||||
/* Bugcheck the system */
|
/* Bugcheck the system */
|
||||||
|
|
|
@ -50,7 +50,7 @@ HalpAllocateBusHandler(IN INTERFACE_TYPE InterfaceType,
|
||||||
/* Allocate address ranges and zero them out */
|
/* Allocate address ranges and zero them out */
|
||||||
Bus->BusAddresses = ExAllocatePoolWithTag(NonPagedPoolMustSucceed,
|
Bus->BusAddresses = ExAllocatePoolWithTag(NonPagedPoolMustSucceed,
|
||||||
sizeof(SUPPORTED_RANGES),
|
sizeof(SUPPORTED_RANGES),
|
||||||
' laH');
|
TAG_HAL);
|
||||||
RtlZeroMemory(Bus->BusAddresses, sizeof(SUPPORTED_RANGES));
|
RtlZeroMemory(Bus->BusAddresses, sizeof(SUPPORTED_RANGES));
|
||||||
|
|
||||||
/* Build the data structure */
|
/* Build the data structure */
|
||||||
|
|
|
@ -210,7 +210,7 @@ HalpQueryDeviceRelations(IN PDEVICE_OBJECT DeviceObject,
|
||||||
FIELD_OFFSET(DEVICE_RELATIONS,
|
FIELD_OFFSET(DEVICE_RELATIONS,
|
||||||
Objects) +
|
Objects) +
|
||||||
sizeof(PDEVICE_OBJECT) * PdoCount,
|
sizeof(PDEVICE_OBJECT) * PdoCount,
|
||||||
' laH');
|
TAG_HAL);
|
||||||
if (!FdoRelations) return STATUS_INSUFFICIENT_RESOURCES;
|
if (!FdoRelations) return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
/* Save our count */
|
/* Save our count */
|
||||||
|
@ -267,7 +267,7 @@ HalpQueryDeviceRelations(IN PDEVICE_OBJECT DeviceObject,
|
||||||
/* Only one entry */
|
/* Only one entry */
|
||||||
PdoRelations = ExAllocatePoolWithTag(PagedPool,
|
PdoRelations = ExAllocatePoolWithTag(PagedPool,
|
||||||
sizeof(DEVICE_RELATIONS),
|
sizeof(DEVICE_RELATIONS),
|
||||||
' laH');
|
TAG_HAL);
|
||||||
if (!PdoRelations) return STATUS_INSUFFICIENT_RESOURCES;
|
if (!PdoRelations) return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
/* Fill it out and reference us */
|
/* Fill it out and reference us */
|
||||||
|
@ -370,12 +370,12 @@ HalpQueryResources(IN PDEVICE_OBJECT DeviceObject,
|
||||||
/* Allocate the resourcel ist */
|
/* Allocate the resourcel ist */
|
||||||
ResourceList = ExAllocatePoolWithTag(PagedPool,
|
ResourceList = ExAllocatePoolWithTag(PagedPool,
|
||||||
sizeof(CM_RESOURCE_LIST),
|
sizeof(CM_RESOURCE_LIST),
|
||||||
' laH');
|
TAG_HAL);
|
||||||
if (!ResourceList )
|
if (!ResourceList )
|
||||||
{
|
{
|
||||||
/* Fail, no memory */
|
/* Fail, no memory */
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
// ExFreePoolWithTag(RequirementsList, ' laH');
|
// ExFreePoolWithTag(RequirementsList, TAG_HAL);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -421,7 +421,7 @@ HalpQueryResources(IN PDEVICE_OBJECT DeviceObject,
|
||||||
/* Return resources and success */
|
/* Return resources and success */
|
||||||
*Resources = ResourceList;
|
*Resources = ResourceList;
|
||||||
|
|
||||||
// ExFreePoolWithTag(RequirementsList, ' laH');
|
// ExFreePoolWithTag(RequirementsList, TAG_HAL);
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -539,7 +539,7 @@ HalpQueryIdPdo(IN PDEVICE_OBJECT DeviceObject,
|
||||||
/* Allocate the buffer */
|
/* Allocate the buffer */
|
||||||
Buffer = ExAllocatePoolWithTag(PagedPool,
|
Buffer = ExAllocatePoolWithTag(PagedPool,
|
||||||
Length + sizeof(UNICODE_NULL),
|
Length + sizeof(UNICODE_NULL),
|
||||||
' laH');
|
TAG_HAL);
|
||||||
if (Buffer)
|
if (Buffer)
|
||||||
{
|
{
|
||||||
/* Copy the string and null-terminate it */
|
/* Copy the string and null-terminate it */
|
||||||
|
@ -605,7 +605,7 @@ HalpQueryIdFdo(IN PDEVICE_OBJECT DeviceObject,
|
||||||
/* Allocate the buffer */
|
/* Allocate the buffer */
|
||||||
Buffer = ExAllocatePoolWithTag(PagedPool,
|
Buffer = ExAllocatePoolWithTag(PagedPool,
|
||||||
Length + sizeof(UNICODE_NULL),
|
Length + sizeof(UNICODE_NULL),
|
||||||
' laH');
|
TAG_HAL);
|
||||||
if (Buffer)
|
if (Buffer)
|
||||||
{
|
{
|
||||||
/* Copy the string and null-terminate it */
|
/* Copy the string and null-terminate it */
|
||||||
|
|
Loading…
Reference in a new issue