From df116e81ea62cf2fcc0f0f89ed328fe27e64ca67 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Wed, 1 May 2019 18:25:45 +0200 Subject: efi_loader: implement UnloadImage() Implement the UnloadImage() boot service Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/efi_api.h') diff --git a/include/efi_api.h b/include/efi_api.h index 472160cb300..b2ae2797474 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -348,7 +348,7 @@ struct efi_loaded_image { aligned_u64 image_size; unsigned int image_code_type; unsigned int image_data_type; - unsigned long unload; + efi_status_t (EFIAPI *unload)(efi_handle_t image_handle); }; #define EFI_DEVICE_PATH_PROTOCOL_GUID \ -- cgit v1.2.3 From b015ab57bf558daa1c768995a7a7f1df2d40191e Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 5 May 2019 21:58:35 +0200 Subject: efi_loader: signature of ExitBootServices() Consistently use efi_uintn_t as type of memory keys. Signed-off-by: Heinrich Schuchardt Reviewed-by: Alexander Graf --- include/efi_api.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/efi_api.h') diff --git a/include/efi_api.h b/include/efi_api.h index b2ae2797474..755c4057939 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -128,7 +128,8 @@ struct efi_boot_services { efi_status_t exit_status, efi_uintn_t exitdata_size, u16 *exitdata); efi_status_t (EFIAPI *unload_image)(efi_handle_t image_handle); - efi_status_t (EFIAPI *exit_boot_services)(efi_handle_t, unsigned long); + efi_status_t (EFIAPI *exit_boot_services)(efi_handle_t image_handle, + efi_uintn_t map_key); efi_status_t (EFIAPI *get_next_monotonic_count)(u64 *count); efi_status_t (EFIAPI *stall)(unsigned long usecs); -- cgit v1.2.3