aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-07-05 08:17:59 +0200
committerAlexander Graf <agraf@suse.de>2018-07-25 14:59:44 +0200
commit4f187897703ab38b12bb9b5a733028aa0083a618 (patch)
tree478ddeb1cc0c0944935a31fa9e7204d146d76ea0 /lib
parent95147313a98c2403589c6bd9a6768c657442e16c (diff)
downloadu-boot-4f187897703ab38b12bb9b5a733028aa0083a618.zip
u-boot-4f187897703ab38b12bb9b5a733028aa0083a618.tar.gz
u-boot-4f187897703ab38b12bb9b5a733028aa0083a618.tar.bz2
efi_loader: EFI_SIMPLE_TEXT_INPUT_PROTOCOL.Reset()
Implement the reset service of the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. This should resolve the error reported by the SCT in Protocol/SimpleTextIn/BlackBoxTest/SimpleTextInBBTestFunction.c:193 Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_console.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c
index ce66c93..1d52753 100644
--- a/lib/efi_loader/efi_console.c
+++ b/lib/efi_loader/efi_console.c
@@ -381,7 +381,12 @@ static efi_status_t EFIAPI efi_cin_reset(
bool extended_verification)
{
EFI_ENTRY("%p, %d", this, extended_verification);
- return EFI_EXIT(EFI_UNSUPPORTED);
+
+ /* Empty input buffer */
+ while (tstc())
+ getc();
+
+ return EFI_EXIT(EFI_SUCCESS);
}
/*