]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[prefix] Ignore PCI autoboot device location if set to 00:00.0
authorMichael Brown <mcb30@ipxe.org>
Mon, 3 Mar 2014 16:23:41 +0000 (16:23 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 3 Mar 2014 16:28:43 +0000 (16:28 +0000)
commitff1e7fc72b138fe66de1452a311b7e871f33e201
tree6f4131db5603b2fad38dc284da07129d719ab6ab
parentc429bf0aa2428e6d12143285b29cbaf6a82f8d84
[prefix] Ignore PCI autoboot device location if set to 00:00.0

qemu can load an option ROM which is not associated with a particular
PCI device using the "-option-rom" syntax.  Under these circumstances,
we should ignore the PCI bus:dev.fn address that we expect to find in
%ax on entry to the initialisation vector.

Fix by using the PCI bus:dev.fn address only if it is non-zero.  Since
00:00.0 will always be the host bridge, it can never be the address of
a network card.

Reported-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/core/pci_autoboot.c