]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: fix efi_add_known_memory()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 14 Aug 2023 05:50:53 +0000 (07:50 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 15 Aug 2023 16:21:17 +0000 (18:21 +0200)
commit2af05f7ec6b88ec1402e993395a74722dfa6bc91
treecc0c27a41867d636556f910980b942a1e9a5b46a
parentb0ee3690b3970c4afd0778d0df20efd5c5e04dc6
efi_loader: fix efi_add_known_memory()

In efi_add_known_memory() we currently call board_get_usable_ram_top() with
an incorrect value 0 of parameter total_size. This leads to an incorrect
value for ram_top depending on the code in board_get_usable_ram_top().

Use the value of gd->ram_top instead which is set before relocation by
calling board_get_usable_ram_top().

Fixes: 0c7255c43335 ("efi_loader: Reserve unaccessible memory")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_memory.c