[ipxe-devel] [PATCH] [efi] Fix console driver's iskey

tong ho tong_ho at yahoo.com
Mon Apr 9 00:54:04 UTC 2012


Problem Description

iPXE calls a console driver's iskey entry two or more times without
calling the getchar entry in between.  This usage is not consistent
with the CheckEvent uEFI service, which clears the keystroke event
per uEFI spec.  The clearing side-effect leads to false-negative
result from iskey() when it is called two or more times without
an intervening call to getchar.  The false-negative result causes
iPXE to discard every other keystroke.

Solution

This patch changes iskey() to probe for outstanding keystroke by
calling getchar().  If a keystroke is found, it is placed in the
driver's buffer for later return, by extending the current scheme
for returning ansi escape sequences.

Thanks.

Regard,
Tong Ho
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-efi-Fix-console-driver-s-iskey.patch
Type: text/x-patch
Size: 3859 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20120408/53412d32/attachment.bin>


More information about the ipxe-devel mailing list