]> git.dujemihanovic.xyz Git - u-boot.git/commit
fdt: lmb: add reserved regions as no-overwrite
authorSughosh Ganu <sughosh.ganu@linaro.org>
Mon, 21 Oct 2024 17:24:33 +0000 (22:54 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 29 Oct 2024 18:09:55 +0000 (12:09 -0600)
commit827dee587b75f5dfe109672f2de91bc7ac8bdc0d
tree010a3cd9b1e6e824285c24662fe8afd9cf51ef3c
parentc3cf0dc64f1c39bc10530ef649fd7bf147e70720
fdt: lmb: add reserved regions as no-overwrite

The boot_fdt_add_mem_rsv_regions() function reserves the memreserve and
reserved-memory regions. These regions are being set with the LMB_NONE
flag which allows overwriting and re-using the regions. This was fine
earlier when the LMB memory map was local and not enforced
globally. But that is no longer the case. Mark these regions as
LMB_NOOVERWRITE so that they cannot be used.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reported-by: Vaishnav Achath <vaishnav.a@ti.com>
boot/image-fdt.c