diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2015-05-18 19:07:16 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-06-01 12:11:36 -0400 |
commit | 1b911d7aed7b0b2db5738d02a3c6964cdf895944 (patch) | |
tree | daddc95d4319f10f36f29c73485d4d4b3e15f84c /src/util.h | |
parent | 67643955c7467781c28c4da1669775d7564dc74a (diff) | |
download | qemu-seabios-1b911d7aed7b0b2db5738d02a3c6964cdf895944.tar.gz |
Add multiboot support.
I've been successfully using SeaBIOS as secondary bootloader. In more details
I have GRUB2-as-payload in flash together with coreboot. SeaBIOS binary is on
the HDD and loaded by GRUB when needed. This has an unfortunate consequence
that I have to keep vga oprom in flash even if usually I boot without it. This
patches makes bios.bin.elf multiboot executable with files passed as modules.
Example:
menuentry "SeaBIOS (mb)" --unrestricted {
root=ahci0,2
multiboot /bios.bin.elf
module /vgabios_x230.rom name=pci8086,0166.rom
}
the parameter name= specifies under which name SeaBIOS will see it.
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -105,6 +105,9 @@ void mptable_setup(void); // fw/mtrr.c void mtrr_setup(void); +// fw/multiboot.c +void multiboot_init(void); + // fw/pciinit.c extern const u8 pci_irqs[4]; void pci_setup(void); |