diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-09-24 10:43:48 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-10-15 11:21:43 +0200 |
commit | 118b792662dfcbd630c2224e844963549d4ebe92 (patch) | |
tree | 713244949567fbf043192c8f55091ce91339e398 /src/fw/pciinit.c | |
parent | bb37fc2983d2d2cb3196a56eeb34ff79775b2e85 (diff) | |
download | seabios-118b792662dfcbd630c2224e844963549d4ebe92.tar.gz |
pci: factor out pci bar allocation.
Factor out pci bar allocation into a separate pci_setup_alloc() function
so it can also be used without running the platform setup code.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/fw/pciinit.c')
-rw-r--r-- | src/fw/pciinit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c index d25931bb..0aaf626e 100644 --- a/src/fw/pciinit.c +++ b/src/fw/pciinit.c @@ -1164,6 +1164,12 @@ pci_setup(void) pcimem_start = RamSize; pci_bios_init_platform(); + pci_setup_alloc(); +} + +void +pci_setup_alloc(void) +{ dprintf(1, "=== PCI new allocation pass #1 ===\n"); struct pci_bus *busses = malloc_tmp(sizeof(*busses) * (MaxPCIBus + 1)); if (!busses) { |