/* Set 'Configuration Data' value */
Size = FIELD_OFFSET(CM_PARTIAL_RESOURCE_LIST, PartialDescriptors) +
2 * sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR) + Table->Size;
- PartialResourceList = MmAllocateMemory(Size);
+ PartialResourceList = MmHeapAlloc(Size);
if (PartialResourceList == NULL)
{
DbgPrint((DPRINT_HWDETECT,
/* Set 'Configuration Data' value */
FldrSetConfigurationData(TableKey, PartialResourceList, Size);
- MmFreeMemory(PartialResourceList);
+ MmHeapFree(PartialResourceList);
}
}
/* Set 'Configuration Data' value */
Size = FIELD_OFFSET(CM_PARTIAL_RESOURCE_LIST,
PartialDescriptors);
- PartialResourceList = MmAllocateMemory(Size);
+ PartialResourceList = MmHeapAlloc(Size);
if (PartialResourceList == NULL)
{
DbgPrint((DPRINT_HWDETECT,
/* Set 'Configuration Data' value */
FldrSetConfigurationData(BiosKey, PartialResourceList, Size);
- MmFreeMemory(PartialResourceList);
+ MmHeapFree(PartialResourceList);
DetectPciIrqRoutingTable(BiosKey);
PartialDescriptors) +
sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR) +
sizeof(PCI_REGISTRY_INFO);
- PartialResourceList = MmAllocateMemory(Size);
+ PartialResourceList = MmHeapAlloc(Size);
if (!PartialResourceList)
{
DbgPrint((DPRINT_HWDETECT,
/* Set 'Configuration Data' value */
FldrSetConfigurationData(BusKey, PartialResourceList, Size);
- MmFreeMemory(PartialResourceList);
+ MmHeapFree(PartialResourceList);
}
else
{
/* Set 'Configuration Data' value */
Size = FIELD_OFFSET(CM_PARTIAL_RESOURCE_LIST,
PartialDescriptors);
- PartialResourceList = MmAllocateMemory(Size);
+ PartialResourceList = MmHeapAlloc(Size);
if (!PartialResourceList)
{
DbgPrint((DPRINT_HWDETECT,
/* Set 'Configuration Data' value */
FldrSetConfigurationData(BusKey, PartialResourceList, Size);
- MmFreeMemory(PartialResourceList);
+ MmHeapFree(PartialResourceList);
}
/* Increment bus number */