diff options
author | Tom Rini <trini@konsulko.com> | 2023-08-15 13:08:17 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-15 13:08:17 -0400 |
commit | 9b54b0e37b72aa9bfff09cbbe13465abfa143f84 (patch) | |
tree | db7a88320a3558c2287e5a0da642e1d28c17ba9f /include/init.h | |
parent | f0efecd27dfb7fda224ccbf661ce4c55744edccc (diff) | |
parent | d768dd88552df18d4a0527cf3d6ddd05dc072f02 (diff) |
Merge tag 'efi-2023-10-rc3' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2023-10-rc3
Documentation:
* Correct description of board_get_usable_ram_top
* Add partition API to HTML documentation
* Describe lmb_is_reserved
* doc/sphinx/requirements.txt: Bump certifi up
UEFI:
* Fix efi_add_known_memory
* Make distro_efi_boot() static
Other:
* Correct return type board_get_usable_ram_top
Diffstat (limited to 'include/init.h')
-rw-r--r-- | include/init.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/init.h b/include/init.h index 8873081685..3bf30476a2 100644 --- a/include/init.h +++ b/include/init.h @@ -296,15 +296,20 @@ int checkboard(void); int show_board_info(void); /** - * Get the uppermost pointer that is valid to access + * board_get_usable_ram_top() - get uppermost address for U-Boot relocation * - * Some systems may not map all of their address space. This function allows - * boards to indicate what their highest support pointer value is for DRAM - * access. + * Some systems have reserved memory areas in high memory. By implementing this + * function boards can indicate the highest address value to be used when + * relocating U-Boot. The returned address is exclusive (i.e. 1 byte above the + * last usable address). * - * @param total_size Size of U-Boot (unused?) + * Due to overflow on systems with 32bit phys_addr_t a value 0 is used instead + * of 4GiB. + * + * @total_size: monitor length in bytes (size of U-Boot code) + * Return: uppermost address for U-Boot relocation */ -phys_size_t board_get_usable_ram_top(phys_size_t total_size); +phys_addr_t board_get_usable_ram_top(phys_size_t total_size); int board_early_init_f(void); |