All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bugfix] Hang on new mac laptops
@ 2009-02-03 21:30 phcoder
  2009-02-03 22:06 ` Pavel Roskin
  0 siblings, 1 reply; 11+ messages in thread
From: phcoder @ 2009-02-03 21:30 UTC (permalink / raw)
  To: The development of GRUB 2

Hello. On new mac laptops waiting for keyboard event causes random 
hangs. Bugfix attached
Thanks
Vladimir 'phcoder' Serbinenko

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 1967)
+++ ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2009-02-03  Vladimir Serbinenko <phcoder@gmail.com>
+
+	Don't rely on event for keyboard on EFI. It causes random hangs
+	Great thanks to Florian Idelberger for testing and helping finding 
this bug
+
+	* term/efi/console.c: Replace wait for event with grub_millisleep (10)
+	
  2009-02-01  Felix Zielcke  <fzielcke@z-51.de>

  	* INSTALL: Note that we now require at least autconf 2.59 and that LZO
Index: term/efi/console.c
===================================================================
--- term/efi/console.c	(revision 1967)
+++ term/efi/console.c	(working copy)
@@ -226,9 +226,10 @@

    do
      {
-      status = efi_call_3 (b->wait_for_event, 1, &(i->wait_for_key), 
&index);
+      /*      status = efi_call_3 (b->wait_for_event, 1, 
&(i->wait_for_key), &index);
        if (status != GRUB_EFI_SUCCESS)
-        return -1;
+        return -1;*/
+      grub_millisleep (10);

        grub_console_checkkey ();
      }



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-03-11 20:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-03 21:30 [Bugfix] Hang on new mac laptops phcoder
2009-02-03 22:06 ` Pavel Roskin
2009-02-04  7:56   ` phcoder
2009-02-07 22:34     ` Robert Millan
2009-02-08 17:02       ` step21
2009-02-08 18:00         ` Robert Millan
2009-02-08 18:52           ` step21
2009-02-08 19:55             ` Robert Millan
2009-02-09  1:46               ` step21
2009-02-09 14:05                 ` Robert Millan
2009-03-11 20:57     ` phcoder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.