[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>
Wed, 30 Apr 2025 23:19:02 +0000 (01:19 +0200)
commitebf79253b0707bf77c21d0d16e4e33739194c462
tree6ac636ff54e91f5abb4f6a70a3bc4a7278b9b9ec
parent81b525926b997d2f6e4e90d306d831f4f0eb2759
[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