diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-08-14 07:50:53 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-08-15 18:21:17 +0200 |
commit | b571b3acdaa43b90de3bc7540f13c02b1ee86b8e (patch) | |
tree | cc0c27a41867d636556f910980b942a1e9a5b46a /drivers/i2c/ast_i2c.c | |
parent | 6072703dc9ac52c644fd6d1a80ee16f91bbd0313 (diff) |
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: 7b78d6438a2b ("efi_loader: Reserve unaccessible memory")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'drivers/i2c/ast_i2c.c')
0 files changed, 0 insertions, 0 deletions