u-boot/lib/efi_loader
Heinrich Schuchardt 4d7f5af841 efi_loader: correct reported length in GetNextVariable()
The runtime service GetNextVariable() returns the length of the next
variable including the closing 0x0000. This length should be in bytes.

Comparing the output of EDK2 and U-Boot shows that this is currently not
correctly implemented:

EDK2:
OsIndicationsSupported: 46
PlatformLang: 26
PlatformLangCodes: 36

U-Boot:
OsIndicationsSupported: 23
PlatformLang: 13
PlatformLangCodes: 18

Provide correct length in GetNextVariable().

Fixes: d99a87f84b ("efi_loader: implement GetNextVariableName()")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-03-22 11:06:23 +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: export a couple of protocol related functions 2020-03-17 08:29:52 +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_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_device_path.c efi_loader: remove unused function efi_dp_from_dev() 2019-11-19 12:10:22 +01:00
efi_disk.c efi_loader: fix function descriptions in efi_disk.c 2020-03-22 11:06:23 +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_config.c efi_loader: debug output for HII protocols 2019-02-13 09:40:06 +01:00
efi_hii.c efi_loader: ListPackageLists() return EFI_NOT_FOUND 2019-06-20 22:26:19 +00: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 efi_loader: correct reported length in GetNextVariable() 2020-03-22 11:06:23 +01: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