* grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
This commit is contained in:
parent
ba14476051
commit
8ff35d0a1b
2 changed files with 18 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
|
||||||
|
|
||||||
2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Support cpuid --pae.
|
Support cpuid --pae.
|
||||||
|
|
|
@ -314,7 +314,11 @@ grub_cmd_legacy_kernel (struct grub_command *mycmd __attribute__ ((unused)),
|
||||||
/* First try Linux. */
|
/* First try Linux. */
|
||||||
if (kernel_type == GUESS_IT || kernel_type == LINUX)
|
if (kernel_type == GUESS_IT || kernel_type == LINUX)
|
||||||
{
|
{
|
||||||
|
#ifdef GRUB_MACHINE_PCBIOS
|
||||||
cmd = grub_command_find ("linux16");
|
cmd = grub_command_find ("linux16");
|
||||||
|
#else
|
||||||
|
cmd = grub_command_find ("linux");
|
||||||
|
#endif
|
||||||
if (cmd)
|
if (cmd)
|
||||||
{
|
{
|
||||||
if (!(cmd->func) (cmd, cutargc, cutargs))
|
if (!(cmd->func) (cmd, cutargc, cutargs))
|
||||||
|
@ -469,10 +473,19 @@ grub_cmd_legacy_initrd (struct grub_command *mycmd __attribute__ ((unused)),
|
||||||
|
|
||||||
if (kernel_type == LINUX)
|
if (kernel_type == LINUX)
|
||||||
{
|
{
|
||||||
|
#ifdef GRUB_MACHINE_PCBIOS
|
||||||
cmd = grub_command_find ("initrd16");
|
cmd = grub_command_find ("initrd16");
|
||||||
|
#else
|
||||||
|
cmd = grub_command_find ("initrd");
|
||||||
|
#endif
|
||||||
if (!cmd)
|
if (!cmd)
|
||||||
return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("can't find command `%s'"),
|
return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("can't find command `%s'"),
|
||||||
"initrd16");
|
#ifdef GRUB_MACHINE_PCBIOS
|
||||||
|
"initrd16"
|
||||||
|
#else
|
||||||
|
"initrd"
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
return cmd->func (cmd, argc, args);
|
return cmd->func (cmd, argc, args);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue