[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Do not require console control protocol.
From: |
Johan Rydberg |
Subject: |
[PATCH] Do not require console control protocol. |
Date: |
Fri, 28 Jul 2006 00:15:40 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
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 <address@hidden>
* 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.
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;
- [PATCH] Do not require console control protocol.,
Johan Rydberg <=