All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Do not require console control protocol.
@ 2006-07-27 22:15 Johan Rydberg
  2006-07-27 22:22 ` Yoshinori K. Okuji
  0 siblings, 1 reply; 4+ messages in thread
From: Johan Rydberg @ 2006-07-27 22:15 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 412 bytes --]

Hi,

I would like to have the following patch committed.  Some EFI
implementations do not provide a console control protocol instance,
and it is covered by neither EFI or UEFI specifications.

~j

2006-07-28  Johan Rydberg  <jrydberg@gnu.org>

        * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
        is in text mode if there is no console control protocol instance
        available.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: grub.efi-console-control.1.patch --]
[-- Type: text/x-patch, Size: 579 bytes --]

Index: kern/efi/efi.c
===================================================================
RCS file: /sources/grub/grub2/kern/efi/efi.c,v
retrieving revision 1.7
diff -u -r1.7 efi.c
--- kern/efi/efi.c	27 May 2006 21:09:25 -0000	1.7
+++ kern/efi/efi.c	27 Jul 2006 22:01:49 -0000
@@ -125,7 +125,9 @@
 
   c = grub_efi_locate_protocol (&console_control_guid, 0);
   if (! c)
-    return 0;
+    /* No console control protocol instance available, assume it is
+       already in text mode. */
+    return 1;
   
   if (c->get_mode (c, &mode, 0, 0) != GRUB_EFI_SUCCESS)
     return 0;

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

end of thread, other threads:[~2006-07-29 11:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-27 22:15 [PATCH] Do not require console control protocol Johan Rydberg
2006-07-27 22:22 ` Yoshinori K. Okuji
2006-07-28 10:20   ` Johan Rydberg
2006-07-29 11:22     ` Yoshinori K. Okuji

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.