When booting with OVMF+CSM, the first video mode that we ask for is mode 0x143. This doesn't seem to work; the qemu display window doesn't change size, and remains blank.
If the first thing we ask for is a *text* mode, then things work fine. This is arguably a bug, but I'm not about to go chasing it. Most video BIOSes will enter mode 3 for themselves as part of the POST anyway, won't they? And that's sufficient to work around the problem for me...
Signed-off-by: David Woodhouse David.Woodhouse@intel.com
diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c index 3e26e32..82aa5fc 100644 --- a/vgasrc/vgabios.c +++ b/vgasrc/vgabios.c @@ -1320,4 +1320,6 @@ vga_post(struct bregs *regs) u8 sum = -checksum_far(get_global_seg(), 0, GET_GLOBAL(_rom_header_size) * 512); SET_VGA(_rom_header_checksum, sum); + + vga_set_mode(3, 0); }