[PATCH v2 0/3] efi_loader: rework ResetSystem()

Heinrich Schuchardt xypron.glpk at gmx.de
Sat Aug 22 09:39:19 CEST 2020


If the UEFI runtime service ResetSystem() is not implemented at runtime,
it should return instead of hanging in an endless loop.

Provide tests for ResetSystem() at before and after ExitBootServices().

If ResetSystem() is not implemented at runtime, use do_reset() after
UEFI unit tests to reset the system.

Heinrich Schuchardt (3):
  efi_loader: ResetSystem() should not hang
  efi_selftest: add a test for ResetSystem()
  efi_selftest: substitute ResetSystem() by do_reset()

 lib/efi_loader/efi_runtime.c          |  7 ++--
 lib/efi_selftest/Makefile             |  1 +
 lib/efi_selftest/efi_selftest.c       | 10 ++++-
 lib/efi_selftest/efi_selftest_reset.c | 58 +++++++++++++++++++++++++++
 4 files changed, 71 insertions(+), 5 deletions(-)
 create mode 100644 lib/efi_selftest/efi_selftest_reset.c

--
2.28.0



More information about the U-Boot mailing list