diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-11-12 23:26:28 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-11-14 07:05:46 +0300 |
commit | fccd3d9c42fbc6d6bfc5bac26bd6db413b2ab75b (patch) | |
tree | 23464b4f3c60e7ed141b862c745b60985cc5253e /lib/efi_selftest | |
parent | 832bfad7451e2e7bd23c96edff2be050905ac3f6 (diff) | |
download | u-boot-fccd3d9c42fbc6d6bfc5bac26bd6db413b2ab75b.tar.xz |
efi_selftest: keep devices in ExitBootServices()
When calling ExitBootServices during out unit tests we should not detach
devices as we need console output for runtime tests.
Fixes: 529441ca89b1 ("efi_loader: Disable devices before handing over control")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_selftest')
-rw-r--r-- | lib/efi_selftest/efi_selftest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/efi_selftest/efi_selftest.c b/lib/efi_selftest/efi_selftest.c index 85e819bdfa..b8eed048c2 100644 --- a/lib/efi_selftest/efi_selftest.c +++ b/lib/efi_selftest/efi_selftest.c @@ -38,6 +38,9 @@ void efi_st_exit_boot_services(void) efi_status_t ret; struct efi_mem_desc *memory_map; + /* Do not detach devices in ExitBootServices. We need the console. */ + efi_st_keep_devices = true; + ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, &desc_version); if (ret != EFI_BUFFER_TOO_SMALL) { |