mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 06:24:17 +00:00
efi_selftest: substitute ResetSystem() by do_reset()
If ResetSystem() is not implemented at runtime, call do_reset() after test completion. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
c06867d7f8
commit
fa63753f86
1 changed files with 8 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
||||||
* Copyright (c) 2017 Heinrich Schuchardt <xypron.glpk@gmx.de>
|
* Copyright (c) 2017 Heinrich Schuchardt <xypron.glpk@gmx.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <command.h>
|
||||||
#include <efi_selftest.h>
|
#include <efi_selftest.h>
|
||||||
#include <vsprintf.h>
|
#include <vsprintf.h>
|
||||||
|
|
||||||
|
@ -309,8 +310,13 @@ efi_status_t EFIAPI efi_selftest(efi_handle_t image_handle,
|
||||||
/* Reset system */
|
/* Reset system */
|
||||||
efi_st_printf("Preparing for reset. Press any key...\n");
|
efi_st_printf("Preparing for reset. Press any key...\n");
|
||||||
efi_st_get_key();
|
efi_st_get_key();
|
||||||
runtime->reset_system(EFI_RESET_WARM, EFI_NOT_READY,
|
|
||||||
sizeof(reset_message), reset_message);
|
if (IS_ENABLED(CONFIG_EFI_HAVE_RUNTIME_RESET))
|
||||||
|
runtime->reset_system(EFI_RESET_WARM, EFI_NOT_READY,
|
||||||
|
sizeof(reset_message), reset_message);
|
||||||
|
else
|
||||||
|
do_reset(NULL, 0, 0, NULL);
|
||||||
|
|
||||||
efi_st_printf("\n");
|
efi_st_printf("\n");
|
||||||
efi_st_error("Reset failed\n");
|
efi_st_error("Reset failed\n");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue