From: Heinrich Schuchardt Date: Thu, 5 Jul 2018 06:17:59 +0000 (+0200) Subject: efi_loader: EFI_SIMPLE_TEXT_INPUT_PROTOCOL.Reset() X-Git-Tag: v2018.09-rc1~2^2~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4f187897703ab38b12bb9b5a733028aa0083a618;p=oweals%2Fu-boot.git 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 Signed-off-by: Alexander Graf --- diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c index ce66c935ec..1d52753456 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); } /*