Skip to content

efi_loader: Patch RTS at ExitBootServices

Alexander Graf u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Add link to upstream Linux patch
- support EFI_RESET_PLATFORM_SPECIFIC
- reuse existing x86_sysreset_request() function

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86: Add efi runtime resetdrivers/sysreset/sysreset_x86.c+22 -16 replies
1/2x86: Add efi runtime reset+0 -00 replies
2/2efi_loader: Patch non-runtime code out at ExitBootServices alreadyinclude/efi_loader.h lib/efi_loader/efi_boottime.c lib/efi_loader/efi_runtime.c+23 -91 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/2] efi_loader: Patch RTS at ExitBootServices

While discussing something compeltely different, Ard pointed out that it might be legal to omit calling SetVirtualAddressMap altogether.

While that sounds great, we currently rely on that call to remove all function pointers to code that we do not support outside of boot services.

So let's patch out those bits already on the call to ExitBootServices, so that we can successfully run even when an OS chooses to omit any call to SetVirtualAddressMap.

---

v1 -> v2:

- Add missing icache invalidation
- New patch: x86: Add efi runtime reset

v2 -> v3:

- Add link to upstream Linux patch
- support EFI_RESET_PLATFORM_SPECIFIC
- reuse existing x86_sysreset_request() function

Alexander Graf (2):
x86: Add efi runtime reset
efi_loader: Patch non-runtime code out at ExitBootServices already

 drivers/sysreset/sysreset_x86.c | 23 ++++++++++++++++++++++-
 include/efi_loader.h            |  2 ++
 lib/efi_loader/efi_boottime.c   |  1 +
 lib/efi_loader/efi_runtime.c    | 29 ++++++++++++++++++++---------
 4 files changed, 45 insertions(+), 10 deletions(-)
Signature · 1 line
2.12.3