aboutsummaryrefslogtreecommitdiff
path: root/cmd/bootefi.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-02-09 14:10:39 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2019-02-16 15:42:20 +0100
commit914df75b0c97b6e9774025500c061231db1cc6b4 (patch)
treed3448f0a06f50f20a92624c57ae8c52a50a24daf /cmd/bootefi.c
parentf69d63fae281ba98c3d063097cf4e95d17f3754d (diff)
downloadu-boot-914df75b0c97b6e9774025500c061231db1cc6b4.zip
u-boot-914df75b0c97b6e9774025500c061231db1cc6b4.tar.gz
u-boot-914df75b0c97b6e9774025500c061231db1cc6b4.tar.bz2
efi_loader: fix EFI entry counting
`bootefi selftest` fails on qemu-x86_defconfig if efi_selftest() is not invoked using EFI_CALL(). Likewise we call the entry point of EFI payloads with EFI_CALL(efi_start_image()). entry_count indicates if we are in U-Boot (1) or in EFI payload code (0). As we start in U-Boot code the initial value has to be 1. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd/bootefi.c')
-rw-r--r--cmd/bootefi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index a2d3825..e1eba46 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -437,7 +437,7 @@ static int do_bootefi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return CMD_RET_FAILURE;
/* Execute the test */
- r = efi_selftest(&image_obj->header, &systab);
+ r = EFI_CALL(efi_selftest(&image_obj->header, &systab));
bootefi_run_finish(image_obj, loaded_image_info);
return r != EFI_SUCCESS;
} else