* grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore

bogus SLOF values.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-04-25 00:45:29 +02:00
parent 6aff01075d
commit 65a6b30b47
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
bogus SLOF values.
2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
Make check work on mips-arc.

View file

@ -123,6 +123,14 @@ grub_console_dimensions (void)
}
}
/* Bogus default value on SLOF in QEMU. */
if (grub_console_terminfo_output.width == 200
&& grub_console_terminfo_output.height == 200)
{
grub_console_terminfo_output.width = 80;
grub_console_terminfo_output.height = 24;
}
/* Use a small console by default. */
if (! grub_console_terminfo_output.width)
grub_console_terminfo_output.width = 80;