efi_loader: fix ExitBootServices

This patch lets the implementation of ExitBootServices conform to
the UEFI standard.

The timer events must be disabled before calling the notification
functions of the exit boot services events.

The boot services must be disabled in the system table.

The handles in the system table should be defined as efi_handle_t.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Heinrich Schuchardt
2018-01-19 20:24:52 +01:00
committed by Alexander Graf
parent 9bc9664d5e
commit cc20ed03f9
2 changed files with 32 additions and 8 deletions

View File

@@ -247,11 +247,11 @@ struct efi_system_table {
struct efi_table_hdr hdr;
unsigned long fw_vendor; /* physical addr of wchar_t vendor string */
u32 fw_revision;
unsigned long con_in_handle;
efi_handle_t con_in_handle;
struct efi_simple_input_interface *con_in;
unsigned long con_out_handle;
efi_handle_t con_out_handle;
struct efi_simple_text_output_protocol *con_out;
unsigned long stderr_handle;
efi_handle_t stderr_handle;
struct efi_simple_text_output_protocol *std_err;
struct efi_runtime_services *runtime;
struct efi_boot_services *boottime;