public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 0/2] efi_loader: Patch RTS at ExitBootServices
Date: Wed, 30 Jan 2019 11:46:33 +0100	[thread overview]
Message-ID: <20190130104635.41372-1-agraf@suse.de> (raw)

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(-)

-- 
2.12.3

             reply	other threads:[~2019-01-30 10:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-30 10:46 Alexander Graf [this message]
2019-01-30 10:46 ` [U-Boot] [PATCH v3 1/2] x86: Add efi runtime reset Alexander Graf
2019-01-30 18:58   ` Heinrich Schuchardt
2019-01-31  1:24     ` Simon Glass
2019-01-31  6:44       ` Alexander Graf
2019-01-31  7:30       ` Bin Meng
2019-01-31  7:31         ` Bin Meng
2019-01-31 11:38           ` Heinrich Schuchardt
2019-01-31 13:03             ` Bin Meng
2019-01-30 10:46 ` [U-Boot] [PATCH v3 2/2] efi_loader: Patch non-runtime code out at ExitBootServices already Alexander Graf
2019-01-30 18:52   ` Heinrich Schuchardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190130104635.41372-1-agraf@suse.de \
    --to=agraf@suse.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox