
This series makes it possible to run EFI applications in non-secure mode. It allows me to run OpenBSD on the Technexion PICO-PI-IMX7 and Banana Pi boards using the PSCI implementation provided by U-Boot.
The second version avoids using r3 to pass the original stack pointer. For some reason that register gets clobbered on the Banana Pi. Instead this version just migrates SP_svc to SP_hyp.
The third version avoids saving r3 on the stack and fixes an include guard as suggested by Alexander Graf.
This fourth version enables ARMV7_LPAE if HYP mode is supported sych that we enable the MMU and caches in HYP mode. It also makes sure we don't attempt to enter non-secure mode twice if we execute a 2nd EFI payload.
Mark Kettenis (5): ARM: HYP/non-sec: migrate stack efi_loader: ARM: run EFI payloads non-secure efi_loader: ARM: don't attempt to enter non-secure mode twice ARM: HYP/non-sec: enable ARMV7_LPAE if HYP mode is supported Revert "efi_loader: no support for ARMV7_NONSEC=y"
arch/arm/cpu/armv7/Kconfig | 2 +- arch/arm/cpu/armv7/nonsec_virt.S | 2 ++ cmd/bootefi.c | 36 ++++++++++++++++++++++++++++++++++++ doc/README.uefi | 2 -- lib/efi_loader/Kconfig | 2 -- 5 files changed, 39 insertions(+), 5 deletions(-)