Browse Source

[romprefix] Allow autoboot device filter to be disabled

Our current behaviour when booting as a ROM is to autoboot only from
devices which are attached via the PCI bus:dev.fn address passed to
the ROM's initialisation vector.

Add a build configuration option AUTOBOOT_ROM_FILTER (enabled by
default) to control this behaviour.  This allows for ROMs to be built
which will attempt to boot from any detected device, even if not
attached via the original PCI bus:dev.fn address.  (This is
particularly useful when building combined EHCI/xHCI ROMs for USB
network boot, since the BIOS may request a boot via the EHCI
controller but the xHCI driver will reroute the root hub ports to the
xHCI controller.)

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 years ago
parent
commit
ae01462b79
2 changed files with 3 additions and 0 deletions
  1. 2
    0
      src/arch/i386/prefix/romprefix.S
  2. 1
    0
      src/config/general.h

+ 2
- 0
src/arch/i386/prefix/romprefix.S View File

775
 
775
 
776
 	/* Store PCI bus:dev.fn, if applicable */
776
 	/* Store PCI bus:dev.fn, if applicable */
777
 .ifeqs	BUSTYPE, "PCIR"
777
 .ifeqs	BUSTYPE, "PCIR"
778
+#ifdef AUTOBOOT_ROM_FILTER
778
 	movw	%ax, autoboot_busdevfn
779
 	movw	%ax, autoboot_busdevfn
780
+#endif /* AUTOBOOT_ROM_FILTER */
779
 .endif
781
 .endif
780
 
782
 
781
 	/* Call main() */
783
 	/* Call main() */

+ 1
- 0
src/config/general.h View File

140
  *
140
  *
141
  */
141
  */
142
 #undef	NONPNP_HOOK_INT19	/* Hook INT19 on non-PnP BIOSes */
142
 #undef	NONPNP_HOOK_INT19	/* Hook INT19 on non-PnP BIOSes */
143
+#define	AUTOBOOT_ROM_FILTER	/* Autoboot only devices matching our ROM */
143
 
144
 
144
 /*
145
 /*
145
  * Error message tables to include
146
  * Error message tables to include

Loading…
Cancel
Save