u-boot/lib/efi_loader
AKASHI Takahiro b484296f6f efi_loader: get_memory_map: return parameters whenever possible
Currently, if GetMemoryMap API returns EFI_BUFFER_TOO_SMALL, it doesn't
set valid values to other parameters, descriptor_size and
descriptor_version, except memory_map_size.
Some efi applications, however, may use those value; in particular,
xen uses descriptor_size to calculate a size of buffer to be allocated.

While UEFI specification is ambiguous in this point, it would be better
to address this issue proactively to maximize the compatibility with
existing efi applications.

With this patch, for example, xen.efi (and hence linux kernel) can be
started via bootefi without modification.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-03-11 08:23:05 +01:00
..
.gitignore efi_loader: git ignore helloworld_efi.S 2020-01-07 18:08:20 +01:00
efi_acpi.c efi_loader: Install ACPI configuration tables 2018-07-02 09:23:28 +08:00
efi_bootmgr.c efi_loader: function comments efi_bootmgr.c 2019-07-16 22:17:20 +00:00
efi_boottime.c efi_loader: describe returning of control 2020-01-15 00:51:51 +01:00
efi_console.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
efi_device_path.c efi_loader: remove unused function efi_dp_from_dev() 2019-11-19 12:10:22 +01:00
efi_device_path_to_text.c efi: device path for nvme 2019-10-06 16:02:37 +02:00
efi_device_path_utilities.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
efi_disk.c efi_loader: disk: install file system protocol to a whole disk 2019-11-12 23:13:54 +01:00
efi_file.c efi_loader: adjust file system info 2020-01-07 18:08:20 +01:00
efi_freestanding.c efi_loader: __cyg_profile_func_enter/_exit 2020-01-07 18:08:20 +01:00
efi_gop.c doc: UEFI API documentation 2019-09-05 23:18:52 +02:00
efi_hii.c efi_loader: ListPackageLists() return EFI_NOT_FOUND 2019-06-20 22:26:19 +00:00
efi_hii_config.c efi_loader: debug output for HII protocols 2019-02-13 09:40:06 +01:00
efi_image_loader.c common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
efi_load_initrd.c efi_loader: Implement FileLoad2 for initramfs loading 2020-02-28 19:37:14 +01:00
efi_memory.c efi_loader: get_memory_map: return parameters whenever possible 2020-03-11 08:23:05 +01:00
efi_net.c doc: UEFI API documentation 2019-09-05 23:18:52 +02:00
efi_rng.c efi_loader: document functions in efi_rng.c 2020-01-15 00:51:51 +01:00
efi_root_node.c efi_rng_protocol: Install the efi_rng_protocol on the root node 2020-01-07 18:08:22 +01:00
efi_runtime.c efi_loader: implement EFI_RT_PROPERTIES_TABLE 2020-02-26 19:32:09 +01:00
efi_setup.c efi_loader: Implement FileLoad2 for initramfs loading 2020-02-28 19:37:14 +01:00
efi_smbios.c sandbox: smbios: Update to support sandbox 2018-12-02 21:59:37 +01:00
efi_unicode_collation.c efi_loader: description efi_stri_coll() 2019-09-23 22:53:25 +02:00
efi_variable.c crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
efi_watchdog.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
helloworld.c efi_loader: consistent naming of protocol GUIDs 2019-04-23 00:37:27 +02:00
Kconfig efi_loader: Implement FileLoad2 for initramfs loading 2020-02-28 19:37:14 +01:00
Makefile efi_loader: Implement FileLoad2 for initramfs loading 2020-02-28 19:37:14 +01:00