mirror of https://github.com/acidanthera/audk.git
Add comments to explain the reason return status is not checked. The return status of KeyboardRead is not used.
Signed-off-by: Li Elvin <elvin.li@intel.com> Reviewed-by: Yao Jiewen <jiewen.yao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13679 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6a34a2e43c
commit
5df0877aff
|
@ -255,6 +255,13 @@ KbdControllerDriverStart (
|
|||
|
||||
//
|
||||
// Fix for random hangs in System waiting for the Key if no KBC is present in BIOS.
|
||||
// When KBC decode (IO port 0x60/0x64 decode) is not enabled,
|
||||
// KeyboardRead will read back as 0xFF and return status is EFI_SUCCESS.
|
||||
// So instead we read status register to detect after read if KBC decode is enabled.
|
||||
//
|
||||
|
||||
//
|
||||
// Return code is ignored on purpose.
|
||||
//
|
||||
KeyboardRead (ConsoleIn, &Data);
|
||||
if ((KeyReadStatusRegister (ConsoleIn) & (KBC_PARE | KBC_TIM)) == (KBC_PARE | KBC_TIM)) {
|
||||
|
|
Loading…
Reference in New Issue