[U-Boot] [PATCH v3 00/13] efi_loader: clean up runtime detaching

Heinrich Schuchardt xypron.glpk at gmx.de
Sat Jul 6 19:46:21 UTC 2019


This patch series moves the detaching of runtime services from
SetVirtualAddressMap() to ExitBootServices().

The return value of unimplemented runtime services is changed to
EFI_UNSUPPORTED.

A unit test for variable services at runtime is implmented. In the current
version it expects EFI_UNSUPPORTED.

v3
	Detach runtime in ExitBootServices()
v2
	Do not add 'NULL' implementation for UEFI variables.
	Separate efi_relocate_runtime_table() and efi_runtime_detach().

Heinrich Schuchardt (13):
  efi_loader: move efi_query_variable_info()
  efi_loader: initialization of variable services
  efi_loader: remove NULL entries from runtime detach list
  efi_loader: clean up runtime detaching
  efi_loader: let the variable driver patch out the runtime
  efi_loader: unimplemented runtime services
  efi_selftest: test variable services at runtime
  efi_loader: split off detaching SetVirtualAddress()
  efi_loader: bump UEFI specification number to 2.8
  test/py: not all boards support UEFI runtime reset
  efi_loader: decision on EFI_RT_SUPPORTED_RESET_SYSTEM
  efi_loader: simplify detaching
  efi_loader: detach runtime in ExitBootServices()

 include/efi_api.h                             |   4 +-
 include/efi_loader.h                          |  11 +
 lib/efi_loader/Kconfig                        |   6 +
 lib/efi_loader/efi_boottime.c                 |  19 +-
 lib/efi_loader/efi_runtime.c                  | 244 ++++++++----------
 lib/efi_loader/efi_setup.c                    |   5 +
 lib/efi_loader/efi_variable.c                 |  81 ++++++
 lib/efi_selftest/Makefile                     |   1 +
 .../efi_selftest_variables_runtime.c          |  94 +++++++
 test/py/tests/test_efi_selftest.py            |   4 -
 10 files changed, 321 insertions(+), 148 deletions(-)
 create mode 100644 lib/efi_selftest/efi_selftest_variables_runtime.c

--
2.20.1



More information about the U-Boot mailing list