Page MenuHomeFreeBSD

Fix efi_cons_poll() when EFI implementation does not support WaitForKey
ClosedPublic

Authored by jmcneill on Aug 27 2016, 6:20 PM.
Referenced Files
Unknown Object (File)
Tue, Apr 2, 12:34 AM
Unknown Object (File)
Jan 9 2024, 9:51 AM
Unknown Object (File)
Jan 9 2024, 9:51 AM
Unknown Object (File)
Jan 9 2024, 9:51 AM
Unknown Object (File)
Jan 9 2024, 9:39 AM
Unknown Object (File)
Dec 29 2023, 10:29 AM
Unknown Object (File)
Dec 23 2023, 11:24 PM
Unknown Object (File)
Dec 20 2023, 12:55 AM
Subscribers

Details

Summary

When the EFI impl (like U-Boot) does not support WaitForKey, we can emulate efi_cons_poll() with a flag and caching the last key read with ReadKeyStroke. This fixes the loader.efi countdown timer on Pine64.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jmcneill retitled this revision from to Fix efi_cons_poll() when EFI implementation does not support WaitForKey.
jmcneill updated this object.
jmcneill edited the test plan for this revision. (Show Details)
jmcneill added a reviewer: ARM.
jmcneill set the repository for this revision to rS FreeBSD src repository - subversion.
jmcneill added projects: ARM, arm64.

Haven't test yet but this looks good to me.

imp edited edge metadata.

Looks like it should work regardless of where it is run...

This revision is now accepted and ready to land.Aug 29 2016, 6:58 PM
This revision was automatically updated to reflect the committed changes.