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

Fred . eldmannen at gmail.com
Fri Feb 8 16:12:22 CET 2013


It would be nice with native resolution video mode.
Such as 1920x1200.


On Fri, Feb 8, 2013 at 4:06 PM, David Woodhouse <dwmw2 at infradead.org> wrote:

> 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
>
>
> _______________________________________________
> SeaBIOS mailing list
> SeaBIOS at seabios.org
> http://www.seabios.org/mailman/listinfo/seabios
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.seabios.org/pipermail/seabios/attachments/20130208/cbe36766/attachment.html>


More information about the SeaBIOS mailing list