mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
efi_loader: EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset()
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@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
committed by
Alexander Graf
parent
54bfba2704
commit
9d12daff6c
@@ -105,14 +105,6 @@ static int term_read_reply(int *n, int num, char end_char)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static efi_status_t EFIAPI efi_cout_reset(
|
|
||||||
struct efi_simple_text_output_protocol *this,
|
|
||||||
char extended_verification)
|
|
||||||
{
|
|
||||||
EFI_ENTRY("%p, %d", this, extended_verification);
|
|
||||||
return EFI_EXIT(EFI_UNSUPPORTED);
|
|
||||||
}
|
|
||||||
|
|
||||||
static efi_status_t EFIAPI efi_cout_output_string(
|
static efi_status_t EFIAPI efi_cout_output_string(
|
||||||
struct efi_simple_text_output_protocol *this,
|
struct efi_simple_text_output_protocol *this,
|
||||||
const efi_string_t string)
|
const efi_string_t string)
|
||||||
@@ -341,6 +333,20 @@ static efi_status_t EFIAPI efi_cout_clear_screen(
|
|||||||
return EFI_EXIT(EFI_SUCCESS);
|
return EFI_EXIT(EFI_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static efi_status_t EFIAPI efi_cout_reset(
|
||||||
|
struct efi_simple_text_output_protocol *this,
|
||||||
|
char extended_verification)
|
||||||
|
{
|
||||||
|
EFI_ENTRY("%p, %d", this, extended_verification);
|
||||||
|
|
||||||
|
/* Clear screen */
|
||||||
|
EFI_CALL(efi_cout_clear_screen(this));
|
||||||
|
/* Set default colors */
|
||||||
|
printf(ESC "[0;37;40m");
|
||||||
|
|
||||||
|
return EFI_EXIT(EFI_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
static efi_status_t EFIAPI efi_cout_set_cursor_position(
|
static efi_status_t EFIAPI efi_cout_set_cursor_position(
|
||||||
struct efi_simple_text_output_protocol *this,
|
struct efi_simple_text_output_protocol *this,
|
||||||
unsigned long column, unsigned long row)
|
unsigned long column, unsigned long row)
|
||||||
|
Reference in New Issue
Block a user