Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140626452
D6781.id54425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
904 B
Referenced Files
None
Subscribers
None
D6781.id54425.diff
View Options
Index: head/sys/boot/efi/libefi/efi_console.c
===================================================================
--- head/sys/boot/efi/libefi/efi_console.c
+++ head/sys/boot/efi/libefi/efi_console.c
@@ -438,8 +438,10 @@
/* Try to read a key stroke. We wait for one if none is pending. */
status = conin->ReadKeyStroke(conin, &key);
- if (status == EFI_NOT_READY) {
- BS->WaitForEvent(1, &conin->WaitForKey, &junk);
+ while (status == EFI_NOT_READY) {
+ /* Some EFI implementation (u-boot for example) do not support WaitForKey */
+ if (conin->WaitForKey != NULL)
+ BS->WaitForEvent(1, &conin->WaitForKey, &junk);
status = conin->ReadKeyStroke(conin, &key);
}
switch (key.ScanCode) {
@@ -454,6 +456,9 @@
int
efi_cons_poll()
{
+
+ if (conin->WaitForKey == NULL)
+ return (1);
/* This can clear the signaled state. */
return (BS->CheckEvent(conin->WaitForKey) == EFI_SUCCESS);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 27, 3:08 AM (8 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27296004
Default Alt Text
D6781.id54425.diff (904 B)
Attached To
Mode
D6781: libefi only use waitforkeys if available
Attached
Detach File
Event Timeline
Log In to Comment