efi_loader: returning from UEFI FIT images
Do not reset the board when returning from an UEFI FIT image. For failed UEFI binary we already print the return status in efi_run_image. Remove duplicate output. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
e7d64065cb
commit
bf758125d8
1 changed files with 4 additions and 5 deletions
|
@ -542,15 +542,14 @@ static int do_bootm_efi(int flag, int argc, char *const argv[],
|
||||||
images->ep);
|
images->ep);
|
||||||
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
|
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
|
||||||
|
|
||||||
|
/* We expect to return */
|
||||||
|
images->os.type = IH_TYPE_STANDALONE;
|
||||||
|
|
||||||
image_buf = map_sysmem(images->ep, images->os.image_len);
|
image_buf = map_sysmem(images->ep, images->os.image_len);
|
||||||
|
|
||||||
efi_ret = efi_run_image(image_buf, images->os.image_len);
|
efi_ret = efi_run_image(image_buf, images->os.image_len);
|
||||||
if (efi_ret != EFI_SUCCESS) {
|
if (efi_ret != EFI_SUCCESS)
|
||||||
printf("## Failed to run EFI image: r = %lu\n",
|
|
||||||
efi_ret & ~EFI_ERROR_MASK);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue