Commit b015ab57bf558daa1c768995a7a7f1df2d40191e
1 parent
470dfa50da
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
efi_loader: signature of ExitBootServices()
Consistently use efi_uintn_t as type of memory keys. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Alexander Graf <graf@amazon.com>
Showing 2 changed files with 4 additions and 3 deletions Side-by-side Diff
include/efi_api.h
... | ... | @@ -128,7 +128,8 @@ |
128 | 128 | efi_status_t exit_status, |
129 | 129 | efi_uintn_t exitdata_size, u16 *exitdata); |
130 | 130 | efi_status_t (EFIAPI *unload_image)(efi_handle_t image_handle); |
131 | - efi_status_t (EFIAPI *exit_boot_services)(efi_handle_t, unsigned long); | |
131 | + efi_status_t (EFIAPI *exit_boot_services)(efi_handle_t image_handle, | |
132 | + efi_uintn_t map_key); | |
132 | 133 | |
133 | 134 | efi_status_t (EFIAPI *get_next_monotonic_count)(u64 *count); |
134 | 135 | efi_status_t (EFIAPI *stall)(unsigned long usecs); |
lib/efi_loader/efi_boottime.c
... | ... | @@ -1841,11 +1841,11 @@ |
1841 | 1841 | * Return: status code |
1842 | 1842 | */ |
1843 | 1843 | static efi_status_t EFIAPI efi_exit_boot_services(efi_handle_t image_handle, |
1844 | - unsigned long map_key) | |
1844 | + efi_uintn_t map_key) | |
1845 | 1845 | { |
1846 | 1846 | struct efi_event *evt; |
1847 | 1847 | |
1848 | - EFI_ENTRY("%p, %ld", image_handle, map_key); | |
1848 | + EFI_ENTRY("%p, %zx", image_handle, map_key); | |
1849 | 1849 | |
1850 | 1850 | /* Check that the caller has read the current memory map */ |
1851 | 1851 | if (map_key != efi_memory_map_key) |