[U-Boot] [PATCH 4/4] efi_loader: EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset()

Alexander Graf agraf at suse.de
Thu Jul 5 11:46:36 UTC 2018


On 07/05/2018 08:18 AM, Heinrich Schuchardt wrote:
> Implement the reset service of the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.
>
> This should resolve the error reported by the SCT in
> Protocol/SimpleTextOut/BlackBoxTest/SimpleTextOutBBTestFunction_uefi.c:639
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>   lib/efi_loader/efi_console.c | 10 +++++++++-
>   1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c
> index 3fd0d2fd51..17aced86a5 100644
> --- a/lib/efi_loader/efi_console.c
> +++ b/lib/efi_loader/efi_console.c
> @@ -110,7 +110,15 @@ static efi_status_t EFIAPI efi_cout_reset(
>   			char extended_verification)
>   {
>   	EFI_ENTRY("%p, %d", this, extended_verification);
> -	return EFI_EXIT(EFI_UNSUPPORTED);
> +
> +	/* Clear screen */
> +	printf(ESC "[2J");
> +	efi_con_mode.cursor_column = 0;
> +	efi_con_mode.cursor_row = 0;

Can this just call clear_screen()?


Alex

> +	/* Set default colors */
> +	printf(ESC "[0;37;40m");
> +
> +	return EFI_EXIT(EFI_SUCCESS);
>   }
>   
>   static efi_status_t EFIAPI efi_cout_output_string(




More information about the U-Boot mailing list