]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: Fix loaded_image handle passing from EL3
authorAlexander Graf <agraf@suse.de>
Sun, 23 Sep 2018 14:23:56 +0000 (16:23 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Sep 2018 19:55:31 +0000 (21:55 +0200)
commit125652f6c2e40a149d0a25868d6bce5ca10585a9
tree919f63bdce2aab05fc69f7b6edddac44c4c07f60
parentdc0b15e50ef36bc18a0d6988fe87bfcc286dbe9b
efi_loader: Fix loaded_image handle passing from EL3

When running in EL3 mode on AArch64, we have to first drop to EL2
to execute a UEFI payload. When dropping down, the arguments to
the entry point have to stay identical to the ones for normal entry
though.

In commit d13bbd7ec10 ("efi_loader: pass handle of loaded image")
we incorrectly changed that logic and had the el3 entry path diverge.
Fix it up by syncing it back to what it's supposed to be.

Fixes: d13bbd7ec10 ("efi_loader: pass handle of loaded image")
Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
cmd/bootefi.c