From: chandramouli narayanan Date: Fri, 13 Jul 2012 17:34:42 +0000 (-0700) Subject: efi_getchar() should wait for the event before reading keystroke. X-Git-Tag: syslinux-6.00-pre1~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16aba524b339a2b0c5f0514827a8329fd120be03;p=platform%2Fupstream%2Fsyslinux.git efi_getchar() should wait for the event before reading keystroke. On an efi64 platform, it didn't work without wait. It needs further debugging to ascertain the fix. --- diff --git a/efi/main.c b/efi/main.c index 07177e0..251f5aa 100644 --- a/efi/main.c +++ b/efi/main.c @@ -243,6 +243,7 @@ char efi_getchar(void) EFI_STATUS status; char c; + WaitForSingleEvent(in->WaitForKey, 0); do { status = uefi_call_wrapper(in->ReadKeyStroke, 2, in, &key); } while (status == EFI_NOT_READY);