summaryrefslogtreecommitdiffstats
path: root/common/efi/payload/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/efi/payload/image.c')
-rw-r--r--common/efi/payload/image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/efi/payload/image.c b/common/efi/payload/image.c
index c1206cd6e2..e63da9ddf0 100644
--- a/common/efi/payload/image.c
+++ b/common/efi/payload/image.c
@@ -139,10 +139,14 @@ static int efi_execute_image(const char *file)
shutdown_barebox();
}
+ efi_pause_devices();
+
efiret = BS->start_image(handle, NULL, NULL);
if (EFI_ERROR(efiret))
pr_err("failed to StartImage: %s\n", efi_strerror(efiret));
+ efi_continue_devices();
+
if (!is_driver)
BS->unload_image(handle);