efi_loader: Patch RTS at ExitBootServices
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 0 repliesNew
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | x86: Add efi runtime resetdrivers/ | +22 | 6 replies | |
| 1/2 | x86: Add efi runtime reset | +0 | 0 replies | |
| 2/2 | efi_loader: Patch non-runtime code out at ExitBootServices alreadyinclude/ lib/ lib/ | +23 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
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