[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)
committerDaniel Leidert <dleidert@debian.org>
Sun, 29 Jun 2025 00:33:57 +0000 (02:33 +0200)
commit75a3d860d91ba6c25963731377056c35e2734c21
treef336a2f8f4d83b97d9955da7f3cfffce8edcad2f
parentb473b3659a61e52917a3c125e4dacd96fe59b07e
[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