diff --git a/reactos/hal/halppc/generic/pci.c b/reactos/hal/halppc/generic/pci.c index c2084324522..39ecc7c8db6 100644 --- a/reactos/hal/halppc/generic/pci.c +++ b/reactos/hal/halppc/generic/pci.c @@ -656,7 +656,7 @@ HalpQueryPciRegistryInfo(VOID) /* Allocate the return structure */ PciRegistryInfo = ExAllocatePoolWithTag(NonPagedPool, sizeof(PCI_REGISTRY_INFO_INTERNAL), - ' laH'); + TAG_HAL); if (!PciRegistryInfo) return NULL; /* Fill it out */ diff --git a/reactos/hal/halx86/acpi/halacpi.c b/reactos/hal/halx86/acpi/halacpi.c index ce4bcd6409d..54793421dcf 100644 --- a/reactos/hal/halx86/acpi/halacpi.c +++ b/reactos/hal/halx86/acpi/halacpi.c @@ -118,7 +118,7 @@ HalpAcpiCopyBiosTable(IN PLOADER_PARAMETER_BLOCK LoaderBlock, else { /* Use Mm pool */ - CachedTable = ExAllocatePoolWithTag(NonPagedPool, Size, ' laH'); + CachedTable = ExAllocatePoolWithTag(NonPagedPool, Size, TAG_HAL); } /* 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) + (Count * sizeof(IO_RESOURCE_DESCRIPTOR)); DPRINT("Resource list size: %d\n", ListSize); - RequirementsList = ExAllocatePoolWithTag(PagedPool, ListSize, ' laH'); + RequirementsList = ExAllocatePoolWithTag(PagedPool, ListSize, TAG_HAL); if (RequirementsList) { /* Initialize it */ @@ -1042,7 +1042,7 @@ HalpQueryAcpiResourceRequirements(OUT PIO_RESOURCE_REQUIREMENTS_LIST *Requiremen else { /* Fail */ - ExFreePoolWithTag(RequirementsList, ' laH'); + ExFreePoolWithTag(RequirementsList, TAG_HAL); Status = STATUS_NO_SUCH_DEVICE; } } diff --git a/reactos/hal/halx86/acpi/halpnpdd.c b/reactos/hal/halx86/acpi/halpnpdd.c index da2d4144cd9..d63093c0b30 100644 --- a/reactos/hal/halx86/acpi/halpnpdd.c +++ b/reactos/hal/halx86/acpi/halpnpdd.c @@ -218,7 +218,7 @@ HalpQueryDeviceRelations(IN PDEVICE_OBJECT DeviceObject, FIELD_OFFSET(DEVICE_RELATIONS, Objects) + sizeof(PDEVICE_OBJECT) * PdoCount, - ' laH'); + TAG_HAL); if (!FdoRelations) return STATUS_INSUFFICIENT_RESOURCES; /* Save our count */ @@ -275,7 +275,7 @@ HalpQueryDeviceRelations(IN PDEVICE_OBJECT DeviceObject, /* Only one entry */ PdoRelations = ExAllocatePoolWithTag(PagedPool, sizeof(DEVICE_RELATIONS), - ' laH'); + TAG_HAL); if (!PdoRelations) return STATUS_INSUFFICIENT_RESOURCES; /* Fill it out and reference us */ @@ -376,12 +376,12 @@ HalpQueryResources(IN PDEVICE_OBJECT DeviceObject, /* Allocate the resourcel ist */ ResourceList = ExAllocatePoolWithTag(PagedPool, sizeof(CM_RESOURCE_LIST), - ' laH'); + TAG_HAL); if (!ResourceList ) { /* Fail, no memory */ Status = STATUS_INSUFFICIENT_RESOURCES; - ExFreePoolWithTag(RequirementsList, ' laH'); + ExFreePoolWithTag(RequirementsList, TAG_HAL); return Status; } @@ -425,7 +425,7 @@ HalpQueryResources(IN PDEVICE_OBJECT DeviceObject, /* Return resources and success */ *Resources = ResourceList; - ExFreePoolWithTag(RequirementsList, ' laH'); + ExFreePoolWithTag(RequirementsList, TAG_HAL); return STATUS_SUCCESS; } @@ -541,7 +541,7 @@ HalpQueryIdPdo(IN PDEVICE_OBJECT DeviceObject, /* Allocate the buffer */ Buffer = ExAllocatePoolWithTag(PagedPool, Length + sizeof(UNICODE_NULL), - ' laH'); + TAG_HAL); if (Buffer) { /* Copy the string and null-terminate it */ @@ -607,7 +607,7 @@ HalpQueryIdFdo(IN PDEVICE_OBJECT DeviceObject, /* Allocate the buffer */ Buffer = ExAllocatePoolWithTag(PagedPool, Length + sizeof(UNICODE_NULL), - ' laH'); + TAG_HAL); if (Buffer) { /* Copy the string and null-terminate it */ diff --git a/reactos/hal/halx86/generic/usage.c b/reactos/hal/halx86/generic/usage.c index 43ac260e435..cedd9500744 100644 --- a/reactos/hal/halx86/generic/usage.c +++ b/reactos/hal/halx86/generic/usage.c @@ -261,8 +261,8 @@ HalpReportResourceUsage(IN PUNICODE_STRING HalName, HalpBuildAddressMap(); /* Allocate the master raw and translated lists */ - RawList = ExAllocatePoolWithTag(NonPagedPool, PAGE_SIZE * 2, ' laH'); - TranslatedList = ExAllocatePoolWithTag(NonPagedPool, PAGE_SIZE * 2, ' laH'); + RawList = ExAllocatePoolWithTag(NonPagedPool, PAGE_SIZE * 2, TAG_HAL); + TranslatedList = ExAllocatePoolWithTag(NonPagedPool, PAGE_SIZE * 2, TAG_HAL); if (!(RawList) || !(TranslatedList)) { /* Bugcheck the system */ diff --git a/reactos/hal/halx86/legacy/bussupp.c b/reactos/hal/halx86/legacy/bussupp.c index 94cfb5eba56..374603ca627 100644 --- a/reactos/hal/halx86/legacy/bussupp.c +++ b/reactos/hal/halx86/legacy/bussupp.c @@ -50,7 +50,7 @@ HalpAllocateBusHandler(IN INTERFACE_TYPE InterfaceType, /* Allocate address ranges and zero them out */ Bus->BusAddresses = ExAllocatePoolWithTag(NonPagedPoolMustSucceed, sizeof(SUPPORTED_RANGES), - ' laH'); + TAG_HAL); RtlZeroMemory(Bus->BusAddresses, sizeof(SUPPORTED_RANGES)); /* Build the data structure */ diff --git a/reactos/hal/halx86/legacy/halpnpdd.c b/reactos/hal/halx86/legacy/halpnpdd.c index c950a112a56..c6eb8135750 100644 --- a/reactos/hal/halx86/legacy/halpnpdd.c +++ b/reactos/hal/halx86/legacy/halpnpdd.c @@ -210,7 +210,7 @@ HalpQueryDeviceRelations(IN PDEVICE_OBJECT DeviceObject, FIELD_OFFSET(DEVICE_RELATIONS, Objects) + sizeof(PDEVICE_OBJECT) * PdoCount, - ' laH'); + TAG_HAL); if (!FdoRelations) return STATUS_INSUFFICIENT_RESOURCES; /* Save our count */ @@ -267,7 +267,7 @@ HalpQueryDeviceRelations(IN PDEVICE_OBJECT DeviceObject, /* Only one entry */ PdoRelations = ExAllocatePoolWithTag(PagedPool, sizeof(DEVICE_RELATIONS), - ' laH'); + TAG_HAL); if (!PdoRelations) return STATUS_INSUFFICIENT_RESOURCES; /* Fill it out and reference us */ @@ -370,12 +370,12 @@ HalpQueryResources(IN PDEVICE_OBJECT DeviceObject, /* Allocate the resourcel ist */ ResourceList = ExAllocatePoolWithTag(PagedPool, sizeof(CM_RESOURCE_LIST), - ' laH'); + TAG_HAL); if (!ResourceList ) { /* Fail, no memory */ Status = STATUS_INSUFFICIENT_RESOURCES; -// ExFreePoolWithTag(RequirementsList, ' laH'); +// ExFreePoolWithTag(RequirementsList, TAG_HAL); return Status; } @@ -421,7 +421,7 @@ HalpQueryResources(IN PDEVICE_OBJECT DeviceObject, /* Return resources and success */ *Resources = ResourceList; -// ExFreePoolWithTag(RequirementsList, ' laH'); +// ExFreePoolWithTag(RequirementsList, TAG_HAL); return STATUS_SUCCESS; } @@ -539,7 +539,7 @@ HalpQueryIdPdo(IN PDEVICE_OBJECT DeviceObject, /* Allocate the buffer */ Buffer = ExAllocatePoolWithTag(PagedPool, Length + sizeof(UNICODE_NULL), - ' laH'); + TAG_HAL); if (Buffer) { /* Copy the string and null-terminate it */ @@ -605,7 +605,7 @@ HalpQueryIdFdo(IN PDEVICE_OBJECT DeviceObject, /* Allocate the buffer */ Buffer = ExAllocatePoolWithTag(PagedPool, Length + sizeof(UNICODE_NULL), - ' laH'); + TAG_HAL); if (Buffer) { /* Copy the string and null-terminate it */