X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=lib_i386%2Fbios_setup.c;h=33c842c6a0aba7e8c54f12b7196b48776282575b;hb=4e37963af708198f3a5c187edaaf584115ac1df6;hp=75f04a01fe637cc3aac4e79b203802c28a30fd91;hpb=b28a31ca0290627c531b9df0d48ec0239078d2d4;p=oweals%2Fu-boot.git diff --git a/lib_i386/bios_setup.c b/lib_i386/bios_setup.c index 75f04a01fe..33c842c6a0 100644 --- a/lib_i386/bios_setup.c +++ b/lib_i386/bios_setup.c @@ -140,8 +140,9 @@ int bios_setup(void) { static int done=0; int vector; +#ifdef CONFIG_PCI struct pci_controller *pri_hose; - +#endif if (done) { return 0; } @@ -223,12 +224,13 @@ int bios_setup(void) * (This, ofcause break on multi hose systems, * but our PCI BIOS only support one hose anyway) */ +#ifdef CONFIG_PCI pri_hose = pci_bus_to_hose(0); if (NULL != pri_hose) { /* fill in last pci bus number for use by the realmode * PCI BIOS */ RELOC_16_BYTE(0xf000, pci_last_bus) = pri_hose->last_busno; } - +#endif return 0; }