]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 15 Nov 2010 09:01:11 +0000 (10:01 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 15 Nov 2010 09:01:11 +0000 (10:01 +0100)
[GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
(now unused).
(grub_keyboard_controller_init)
[GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
read the initial state since controller isn't inited yet.

ChangeLog
grub-core/term/at_keyboard.c

index 1c862e1f0e944cfe53439aa791263f6cb3c810db..8f78477e9eee0fbcea173a3b0419a9476b4899ce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-11-15  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
+       [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
+       (now unused).
+       (grub_keyboard_controller_init)
+       [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
+       read the initial state since controller isn't inited yet.
+
 2010-11-15  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/lib/relocator.c (malloc_in_range): Take into account that
index 1b130bd62cce2fab35730cd13586792e91b55ad7..5bc3f578c3118e23704c51b9a28968259489f5c2 100644 (file)
@@ -257,6 +257,8 @@ grub_keyboard_controller_write (grub_uint8_t c)
   grub_outb (c, KEYBOARD_REG_DATA);
 }
 
+#if !defined (GRUB_MACHINE_MIPS_YEELOONG) && !defined (GRUB_MACHINE_QEMU)
+
 static grub_uint8_t
 grub_keyboard_controller_read (void)
 {
@@ -265,6 +267,8 @@ grub_keyboard_controller_read (void)
   return grub_inb (KEYBOARD_REG_DATA);
 }
 
+#endif
+
 static int
 write_mode (int mode)
 {
@@ -558,8 +562,13 @@ grub_keyboard_controller_init (struct grub_term_input *term __attribute__ ((unus
       keyboard_controller_wait_until_ready ();
       grub_inb (KEYBOARD_REG_DATA);
     }
+#if defined (GRUB_MACHINE_MIPS_YEELOONG) || defined (GRUB_MACHINE_QEMU)
+  grub_keyboard_controller_orig = 0;
+  grub_keyboard_orig_set = 2;
+#else
   grub_keyboard_controller_orig = grub_keyboard_controller_read ();
   grub_keyboard_orig_set = query_mode ();
+#endif
   set_scancodes ();
   keyboard_controller_led (led_status);