diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2017-09-15 10:06:18 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-09-18 23:53:57 +0200 |
commit | 152a263c86c344fb255edf039071b8746a7fe0ff (patch) | |
tree | 3d1e97db8395981e0d607ef264b6433bb123bc64 /lib | |
parent | 1835f6ea7133263dbb51977a420b84b41234b5f1 (diff) | |
download | u-boot-152a263c86c344fb255edf039071b8746a7fe0ff.tar.gz |
efi_loader: notify when ExitBootServices is invoked
All events of type EVT_SIGNAL_EXIT_BOOT_SERVICES have to be
notified when ExitBootServices is invoked.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_boottime.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 7c92a68bf4..0d234146d7 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -900,8 +900,19 @@ static void efi_exit_caches(void) static efi_status_t EFIAPI efi_exit_boot_services(void *image_handle, unsigned long map_key) { + int i; + EFI_ENTRY("%p, %ld", image_handle, map_key); + /* Notify that ExitBootServices is invoked. */ + for (i = 0; i < ARRAY_SIZE(efi_events); ++i) { + if (efi_events[i].type != EVT_SIGNAL_EXIT_BOOT_SERVICES) + continue; + efi_signal_event(&efi_events[i]); + } + /* Make sure that notification functions are not called anymore */ + efi_tpl = TPL_HIGH_LEVEL; + board_quiesce_devices(); /* Fix up caches for EFI payloads if necessary */ |