]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add comments to explain the reason return status is not checked. The return status...
authorli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Aug 2012 08:20:27 +0000 (08:20 +0000)
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Aug 2012 08:20:27 +0000 (08:20 +0000)
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

IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c

index 0b4aff77903fe5832a2fb46b5d90134d96529c7b..c73cf936131830a75148cc95550ce7ed2f6a6b5d 100644 (file)
@@ -255,6 +255,13 @@ KbdControllerDriverStart (
 \r
   //\r
   // Fix for random hangs in System waiting for the Key if no KBC is present in BIOS.\r
+  // When KBC decode (IO port 0x60/0x64 decode) is not enabled, \r
+  // KeyboardRead will read back as 0xFF and return status is EFI_SUCCESS.\r
+  // So instead we read status register to detect after read if KBC decode is enabled.\r
+  //\r
+  \r
+  //\r
+  // Return code is ignored on purpose.\r
   //\r
   KeyboardRead (ConsoleIn, &Data);\r
   if ((KeyReadStatusRegister (ConsoleIn) & (KBC_PARE | KBC_TIM)) == (KBC_PARE | KBC_TIM)) {\r