diff options
author | Tom Rini <trini@konsulko.com> | 2023-02-07 11:42:26 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-07 11:42:26 -0500 |
commit | b69026c91f2e98b247120e217a986f5056724baf (patch) | |
tree | f1533069fcdbcf265deb0ea6b3b940e81902d9b3 /lib/lmb.c | |
parent | f8f47e6ff214a3ba7a61025bcc4dc058f507c279 (diff) | |
parent | 41a29f284cef48a86c86d038c0cd8cc1c851417e (diff) |
Merge branch '2023-02-07-assorted-updates'
- Default to dynamic LMB allocation, and fix an issue with the EFI one,
assorted TI platform updates, socrates platform updates, switch
qemu-arm to using bootstd, imagetool fixes, macOS host build fixes,
keymile platform upates, spl FPGA load fix, MMC env bugfix, add seama
command, usb bootdev test bugfix.
Diffstat (limited to 'lib/lmb.c')
-rw-r--r-- | lib/lmb.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/lmb.c b/lib/lmb.c index ec790760db6..f447c639a60 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -175,11 +175,14 @@ static __maybe_unused int efi_lmb_reserve(struct lmb *lmb) return 1; for (i = 0, map = memmap; i < map_size / sizeof(*map); ++map, ++i) { - if (map->type != EFI_CONVENTIONAL_MEMORY) - lmb_reserve(lmb, - map_to_sysmem((void *)(uintptr_t) - map->physical_start), - map->num_pages * EFI_PAGE_SIZE); + if (map->type != EFI_CONVENTIONAL_MEMORY) { + lmb_reserve_flags(lmb, + map_to_sysmem((void *)(uintptr_t) + map->physical_start), + map->num_pages * EFI_PAGE_SIZE, + map->type == EFI_RESERVED_MEMORY_TYPE + ? LMB_NOMAP : LMB_NONE); + } } efi_free_pool(memmap); |