2009-03-28 Robert Millan <rmh@aybabtu.com>
* conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'. (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New variables. Use 16-bit loader. (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit loader. * kern/i386/loader.S (grub_linux_boot): Rename to ... (grub_linux16_boot): ... this. Update all users. * loader/i386/linux.c (grub_linux32_boot): Rename to ... (grub_linux_boot): ... this. Update all users. * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ... (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd' commands to `linux16' and `initrd16'. (GRUB_MOD_FINI(linux)): Rename to ... (GRUB_MOD_FINI(linux16)): ... this.
This commit is contained in:
parent
7d074e3ce2
commit
a9368fd30c
7 changed files with 112 additions and 32 deletions
|
@ -263,7 +263,7 @@ struct
|
|||
#endif
|
||||
|
||||
static grub_err_t
|
||||
grub_linux32_boot (void)
|
||||
grub_linux_boot (void)
|
||||
{
|
||||
struct linux_kernel_params *params;
|
||||
int e820_num;
|
||||
|
@ -522,7 +522,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
|
|||
|
||||
if (grub_errno == GRUB_ERR_NONE)
|
||||
{
|
||||
grub_loader_set (grub_linux32_boot, grub_linux_unload,
|
||||
grub_loader_set (grub_linux_boot, grub_linux_unload,
|
||||
0 /* set noreturn=0 in order to avoid grub_console_fini() */);
|
||||
loaded = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue