u-boot/lib/efi_loader
Heinrich Schuchardt f756fe83b0 efi_loader: AllocateAdress error handling
If AllocatePages() is called with AllocateAddress, the UEFI spec requires
to return EFI_NOT_FOUND in case the memory page does not exist.

The UEFI SCT II 2017 spec additionally requires to return EFI_NOT_FOUND if
the page is already allocated.

Check that *Memory refers to an unallocated page.

UEFI SCT II (2017): AllocatePages(), 5.1.2.1.9 - 5.1.2.1.10

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2019-05-12 20:54:22 +02:00
..
.gitignore lib: gitignore *.elf and *.so generated by efi_loader 2017-01-09 10:30:24 -05:00
efi_acpi.c efi_loader: Install ACPI configuration tables 2018-07-02 09:23:28 +08:00
efi_bootmgr.c efi_loader: optional data in load options are binary 2019-05-02 18:17:50 +02:00
efi_boottime.c efi_loader: error code in UninstallProtocolInterface() 2019-05-12 20:54:22 +02:00
efi_console.c efi_loader: correct CTRL-A - CTRL-Z console input 2019-04-07 15:11:33 +02:00
efi_device_path.c efi_loader: check length in CreateDeviceNode() 2019-04-23 00:51:01 +02:00
efi_device_path_to_text.c efi_loader: fix typos 2018-12-02 21:59:37 +01: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: consistent naming of protocol GUIDs 2019-04-23 00:37:27 +02:00
efi_file.c efi_loader: enable file SetInfo() 2019-04-07 14:17:06 +02:00
efi_freestanding.c efi_loader: provide freestanding library 2019-02-13 09:40:06 +01:00
efi_gop.c efi_loader: consistent naming of protocol GUIDs 2019-04-23 00:37:27 +02:00
efi_hii.c efi_loader: endless loop in add_strings_package() 2019-03-20 18:16:53 +01:00
efi_hii_config.c efi_loader: debug output for HII protocols 2019-02-13 09:40:06 +01:00
efi_image_loader.c efi_loader: unload applications upon Exit() 2019-05-07 21:10:03 +02:00
efi_memory.c efi_loader: AllocateAdress error handling 2019-05-12 20:54:22 +02:00
efi_net.c efi_loader: consistent naming of protocol GUIDs 2019-04-23 00:37:27 +02:00
efi_root_node.c efi_loader: make device path to text protocol customizable 2019-05-12 20:54:22 +02:00
efi_runtime.c efi_loader: efi_add_runtime_mmio() 2019-02-13 09:40:05 +01:00
efi_setup.c efi_loader: clean up UEFI sub-system initialization 2019-05-07 21:10:03 +02:00
efi_smbios.c sandbox: smbios: Update to support sandbox 2018-12-02 21:59:37 +01:00
efi_unicode_collation.c efi_loader: EFI_UNICODE_COLLATION_PROTOCOL 2018-09-23 21:55:29 +02:00
efi_variable.c efi_loader: EFI_PRINT instead of debug for variable services 2019-04-07 14:17:06 +02: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: make device path to text protocol customizable 2019-05-12 20:54:22 +02:00
Makefile efi_loader: make device path to text protocol customizable 2019-05-12 20:54:22 +02:00