Skip to content
Snippets Groups Projects
Commit 152a263c authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Alexander Graf
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 1835f6ea
No related branches found
No related tags found
No related merge requests found
...@@ -900,8 +900,19 @@ static void efi_exit_caches(void) ...@@ -900,8 +900,19 @@ static void efi_exit_caches(void)
static efi_status_t EFIAPI efi_exit_boot_services(void *image_handle, static efi_status_t EFIAPI efi_exit_boot_services(void *image_handle,
unsigned long map_key) unsigned long map_key)
{ {
int i;
EFI_ENTRY("%p, %ld", image_handle, map_key); 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(); board_quiesce_devices();
/* Fix up caches for EFI payloads if necessary */ /* Fix up caches for EFI payloads if necessary */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment