freebsd-nq/sys/boot/efi/libefi
Marcel Moolenaar 487d404b1b In efi_cons_poll we check if a key is present (pending) by checking
the signaled state of the apropriate event. As a side-effect of
checking the event, it's signaled state is cleared if it was set.
In efi_cons_getchar we used to wait for the apropriate event to be
signaled before reading a character. This however does not work if
we poll before reading the characteri, such as during autoboot. On
a more compliant EFI implementation this resulted in the behaviour
that hitting a key during autoboot would stop the countdown, but
would then wait for a new character to arrive instead of reading
the already pending key that stopped the countdown.

The correct behaviour for efi_cons_getchar is to try to read a key
and if none is pending, to wait for the apropriate event to signal
the arrival of a new key.

Note that with the previous behaviour, the second key would determine
how the autoboot was interrupted. This would indicate that the first
key got lost. This indicates that EFI does not necessarily maintain
a queue of pending keys. FWIW...

Approved by: re (carte blanche)
French corrected by: various people :-)
2002-12-08 19:46:11 +00:00
..
arch/ia64 Improve self-relocation: 2002-04-21 08:49:47 +00:00
bootinfo.c o Fix a size calculation based on a 8KB page, while under EFI 2002-10-24 07:53:12 +00:00
copy.c o Remove namespace pollution from param.h: 2002-05-19 04:42:19 +00:00
delay.c
devicename.c
efi_console.c In efi_cons_poll we check if a key is present (pending) by checking 2002-12-08 19:46:11 +00:00
efiboot.h o Fix a size calculation based on a 8KB page, while under EFI 2002-10-24 07:53:12 +00:00
efifpswa.c Lookup the EFI_FPSWA driver and pass the interface pointer through to the 2001-11-19 07:09:47 +00:00
efifs.c Finally fix loader completely for IA64. efifs_stat() wasn't setting 2002-04-11 09:50:11 +00:00
efinet.c Fix printf format errors 2002-07-20 03:52:18 +00:00
elf_freebsd.c Remove a left-over virtual mapping of uncached I/O port space. 2002-11-28 03:25:51 +00:00
exit.c
libefi.c
Makefile Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
module.c
time.c Add getsecs() for the libstand network code. 2001-09-22 18:33:09 +00:00