[pci][fdt] do not attempt to configure PCI with 64bit bars on a 32bit system

Especially in the case where the 32bit system doesn't have an MMU, avoid
using any high addresses for BARs.
This commit is contained in:
Travis Geiselbrecht
2024-05-09 22:15:27 -07:00
parent 5d8dd9c36a
commit 2f98fbf772
2 changed files with 5 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ status_t resource_allocator::allocate_mmio(bool can_be_64bit, bool prefetchable,
return NO_ERROR;
}
// after trying once to allocate in a 64bit range, drop to 32bit and try again
if (can_be_64bit) {
can_be_64bit = false;
continue;