[SeaBIOS] [RFC PATCH] VGA BIOS init fails if first mode used is graphical

David Woodhouse dwmw2 at infradead.org
Fri Feb 8 16:06:39 CET 2013


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 at 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);
 }


-- 
dwmw2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6171 bytes
Desc: not available
URL: <http://www.seabios.org/pipermail/seabios/attachments/20130208/29ae3072/attachment.bin>


More information about the SeaBIOS mailing list