u-boot/lib/efi_loader
Bryan O'Donoghue b225c92fd0 efi_loader: Change return type of efi_add_memory_map()
We currently have some inconsistent use of efi_add_memory_map()
throughout the code. In particular the return value of efi_add_memory_map()
is not interpreted the same way by various users in the codebase.

This patch does the following:

- Changes efi_add_memory_map() to return efi_status_t.
- Adds a method description to efi_add_memory_map().
- Changes efi_add_memory_map() to return EFI_SUCCESS
- Returns non-zero for error in efi_add_memory_map()
- Updates efi_allocate_pages() to new efi_add_memory_map()
- Updates efi_free_pages() to new efi_add_memory_map()
- Updates efi_carve_out_dt_rsv() to new efi_add_memory_map()
- Updates efi_add_runtime_mmio()  to new efi_add_memory_map()

Fixes: 5d00995c36 ("efi_loader: Implement memory allocation and map")
Fixes: 74c16acce3 ("efi_loader: Don't allocate from memory holes")
Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Alexander Graf <agraf@csgraf.de>
Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2019-07-16 22:17:17 +00: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: bootmgr: make BootNext non-volatile 2019-06-04 23:56:14 +02:00
efi_boottime.c efi_loader: EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE 2019-07-16 22:17:16 +00:00
efi_console.c efi_loader: console incorrectly advertised left logo key 2019-06-20 22:26:18 +00:00
efi_device_path_to_text.c efi_loader: merge adjacent sprintf() 2019-05-19 08:10:10 +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: check length in CreateDeviceNode() 2019-04-23 00:51:01 +02:00
efi_disk.c efi_loader: consistent naming of protocol GUIDs 2019-04-23 00:37:27 +02:00
efi_file.c efi_loader: Delete() return EFI_WARN_DELETE_FAILURE 2019-06-20 22:26:19 +00:00
efi_freestanding.c efi_loader: provide freestanding library 2019-02-13 09:40:06 +01:00
efi_gop.c efi_loader: GOP: provide accurate mode information 2019-06-20 22:26:17 +00: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 efi_loader: unload applications upon Exit() 2019-05-07 21:10:03 +02:00
efi_memory.c efi_loader: Change return type of efi_add_memory_map() 2019-07-16 22:17:17 +00:00
efi_net.c efi_loader: parameter checks simple network protocol 2019-05-19 08:10:10 +02:00
efi_root_node.c efi_loader: implement deprecated Unicode collation protocol 2019-05-19 08:10:10 +02:00
efi_runtime.c efi_loader: Change return type of efi_add_memory_map() 2019-07-16 22:17:17 +00:00
efi_setup.c efi_loader: initialization of variable services 2019-07-06 21:25:32 +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: legal characters in StrToFat() 2019-06-14 19:18:40 +02:00
efi_variable.c efi_loader: let the variable driver patch out the runtime 2019-07-06 21:25:32 +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: decision on EFI_RT_SUPPORTED_RESET_SYSTEM 2019-07-06 21:25:32 +02:00
Makefile efi_loader: rename Unicode collation protocol 2 variables 2019-05-19 08:10:10 +02:00