2009-05-04 Robert Millan <rmh.grub@aybabtu.com>

* loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
        parameter only available on BIOS.
This commit is contained in:
robertmh 2009-05-04 18:40:33 +00:00
parent ecc3eb22ee
commit b01f05482b
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
* loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
parameter only available on BIOS.
2009-05-04 Vladimir Serbinenko <phcoder@gmail.com> 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
Removed wrong semicolon in declaration Removed wrong semicolon in declaration

View file

@ -608,6 +608,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
vid_mode = 0; vid_mode = 0;
linux_mem_size = 0; linux_mem_size = 0;
for (i = 1; i < argc; i++) for (i = 1; i < argc; i++)
#ifdef GRUB_MACHINE_PCBIOS
if (grub_memcmp (argv[i], "vga=", 4) == 0) if (grub_memcmp (argv[i], "vga=", 4) == 0)
{ {
/* Video mode selection support. */ /* Video mode selection support. */
@ -649,6 +650,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
if (grub_errno) if (grub_errno)
goto fail; goto fail;
} }
#endif /* GRUB_MACHINE_PCBIOS */
else if (grub_memcmp (argv[i], "mem=", 4) == 0) else if (grub_memcmp (argv[i], "mem=", 4) == 0)
{ {
char *val = argv[i] + 4; char *val = argv[i] + 4;