Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
on some qemu versions with GRUB. * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New define. (grub_openbsd_bootarg_pcibios): New struct. * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]: Add PCIINFO.
This commit is contained in:
parent
08a14e0b71
commit
c5c81ff978
3 changed files with 52 additions and 0 deletions
|
@ -61,6 +61,7 @@
|
|||
#define OPENBSD_BOOTARG_END -1
|
||||
|
||||
#define OPENBSD_BOOTARG_MMAP 0
|
||||
#define OPENBSD_BOOTARG_PCIBIOS 4
|
||||
#define OPENBSD_BOOTARG_CONSOLE 5
|
||||
|
||||
struct grub_openbsd_bootargs
|
||||
|
@ -76,6 +77,14 @@ struct grub_openbsd_bootarg_console
|
|||
grub_uint32_t speed;
|
||||
};
|
||||
|
||||
struct grub_openbsd_bootarg_pcibios
|
||||
{
|
||||
grub_uint32_t characteristics;
|
||||
grub_uint32_t revision;
|
||||
grub_uint32_t pm_entry;
|
||||
grub_uint32_t last_bus;
|
||||
};
|
||||
|
||||
#define GRUB_OPENBSD_COM_MAJOR 8
|
||||
#define GRUB_OPENBSD_VGA_MAJOR 12
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue