[PATCH] efi_loader: switch to non-secure mode later
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 24 Jan 2021 14:34:12 +0000 (14:34 +0000)
committerVagrant Cascadian <vagrant@debian.org>
Sun, 23 May 2021 04:32:45 +0000 (05:32 +0100)
commit86e8bad4c3df5e5eaba13ac621eafbdc03944d67
tree0711105e3fc7ba0c4913544de58825233ee5473d
parentf809fa21589273e011e521b0dc59284d135b5724
[PATCH] efi_loader: switch to non-secure mode later

Some ARMv7 boards using PSCI require to be in secure-mode when booted via
'bootz' or 'bootm'. During distro-boot 'bootefi bootmgr' is called to check
if booting via UEFI is possible.

With the change we change the switch from secure mode to non-secure mode is
moved from the UEFI subsystem setup to just before calling StartImage().

Cc: Jernej Škrabec <jernej.skrabec@gmail.com>
Reported by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0001-efi_loader-switch-to-non-secure-mode-later.patch
cmd/bootefi.c
lib/efi_loader/efi_setup.c