Eliminate grub_term_register_{input,output}_active. Default terminals are
automatically activated because they're the only terminal that has been loaded. This solution is temporary. In the future, all terminals should auto-enable, but this is non-trivial due to resource conflict, and it shouldn't prevent merge in trunk.
This commit is contained in:
parent
75cc5b682e
commit
822873a7da
10 changed files with 33 additions and 62 deletions
|
@ -278,11 +278,7 @@ static struct grub_term_input grub_at_keyboard_term =
|
|||
|
||||
GRUB_MOD_INIT(at_keyboard)
|
||||
{
|
||||
#if defined (GRUB_MACHINE_COREBOOT) || defined (GRUB_MACHINE_QEMU) || defined (GRUB_MACHINE_MIPS_YEELOONG)
|
||||
grub_term_register_input_active ("at_keyboard", &grub_at_keyboard_term);
|
||||
#else
|
||||
grub_term_register_input ("at_keyboard", &grub_at_keyboard_term);
|
||||
#endif
|
||||
}
|
||||
|
||||
GRUB_MOD_FINI(at_keyboard)
|
||||
|
|
|
@ -71,8 +71,8 @@ static struct grub_term_output grub_console_term_output =
|
|||
void
|
||||
grub_console_init (void)
|
||||
{
|
||||
grub_term_register_output_active ("console", &grub_console_term_output);
|
||||
grub_term_register_input_active ("console", &grub_console_term_input);
|
||||
grub_term_register_output ("console", &grub_console_term_output);
|
||||
grub_term_register_input ("console", &grub_console_term_input);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -163,16 +163,12 @@ static struct grub_term_output grub_vga_text_term =
|
|||
.setcolorstate = grub_console_setcolorstate,
|
||||
.setcolor = grub_console_setcolor,
|
||||
.getcolor = grub_console_getcolor,
|
||||
.setcursor = grub_vga_text_setcursor
|
||||
.setcursor = grub_vga_text_setcursor,
|
||||
};
|
||||
|
||||
GRUB_MOD_INIT(vga_text)
|
||||
{
|
||||
#if defined (GRUB_MACHINE_COREBOOT) || defined (GRUB_MACHINE_QEMU)
|
||||
grub_term_register_output_active ("vga_text", &grub_vga_text_term);
|
||||
#else
|
||||
grub_term_register_output ("vga_text", &grub_vga_text_term);
|
||||
#endif
|
||||
}
|
||||
|
||||
GRUB_MOD_FINI(vga_text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue