ECAM ACPI PCI controller: Fix computed length being unused for 32/64.

Amends 8be0a59e77.
This commit is contained in:
Augustin Cavalier 2023-05-24 15:03:07 -04:00
parent 8be0a59e77
commit 5dcae7c6b8

View File

@ -121,7 +121,7 @@ ECAMPCIControllerACPI::AcpiCrsScanCallbackInt(acpi_resource *res)
ASSERT(address.minimum + address_length - 1 == address.maximum);
range.host_addr = address.minimum + address.translation_offset;
range.pci_addr = address.minimum;
range.size = address.address_length;
range.size = address_length;
break;
}
case ACPI_RESOURCE_TYPE_ADDRESS64: {
@ -133,7 +133,7 @@ ECAMPCIControllerACPI::AcpiCrsScanCallbackInt(acpi_resource *res)
ASSERT(address.minimum + address_length - 1 == address.maximum);
range.host_addr = address.minimum + address.translation_offset;
range.pci_addr = address.minimum;
range.size = address.address_length;
range.size = address_length;
break;
}
}