summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-06 13:52:29 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-06 13:52:29 +0000
commit70aa21d5d6a91877d26d71ec5c6b7956825d7245 (patch)
tree155147f6431509d3ef2843a27cfe5e5be7038493 /ArmPlatformPkg
parentbcd8fa799dc3abb68a45b853f98374d873d3a201 (diff)
downloadedk2-platforms-70aa21d5d6a91877d26d71ec5c6b7956825d7245.tar.xz
ArmPlatformPkg/Bds: Catch the key pressed to escape the count doan
Catch the pressed key used to not start the default boot device. Otherwise this key would appear in the menu user input. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11990 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg')
-rw-r--r--ArmPlatformPkg/Bds/Bds.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ArmPlatformPkg/Bds/Bds.c b/ArmPlatformPkg/Bds/Bds.c
index a10c90a815..11116ede96 100644
--- a/ArmPlatformPkg/Bds/Bds.c
+++ b/ArmPlatformPkg/Bds/Bds.c
@@ -269,6 +269,7 @@ StartDefaultBootOnTimeout (
UINTN Index;
CHAR16 BootVariableName[9];
EFI_STATUS Status;
+ EFI_INPUT_KEY Key;
Size = sizeof(UINT16);
Timeout = (UINT16)PcdGet16 (PcdPlatformBootTimeOut);
@@ -293,6 +294,10 @@ StartDefaultBootOnTimeout (
Timeout--;
}
}
+ // Discard key in the buffer
+ do {
+ Status = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);
+ } while(!EFI_ERROR(Status));
gBS->CloseEvent (WaitList[0]);
Print(L"\n\r");
}