[coreboot] [PATCH] fix qemu no screen problem when with -std-vga switch
aaron lwe
aaron.lwe at gmail.com
Thu Dec 4 04:02:30 CET 2008
When running qemu with -std-vga switch using coreboot, qemu's screen
window will disappear. It's caused by no vga initialization for
std-vga card. The patch below adds a driver structure to make std-vga
card work.
Index: src/mainboard/emulation/qemu-x86/mainboard.c
===================================================================
--- src/mainboard/emulation/qemu-x86/mainboard.c (revision 3789)
+++ src/mainboard/emulation/qemu-x86/mainboard.c (working copy)
@@ -35,6 +35,12 @@
.device = 0x00b8,
};
+static const struct pci_driver vga_driver_stdvga __pci_driver = {
+ .ops = &vga_operations,
+ .vendor = 0x1234,
+ .device = 0x1111,
+};
+
struct chip_operations mainboard_emulation_qemu_x86_ops = {
CHIP_NAME("QEMU Mainboard")
};
Signed-off-by: Aaron Lwe <aaron.lwe at gmail.com>
-Aaron
More information about the coreboot
mailing list