]> git.dujemihanovic.xyz Git - u-boot.git/commit
lmb: add and reserve memory above ram_top
authorSughosh Ganu <sughosh.ganu@linaro.org>
Tue, 15 Oct 2024 15:37:05 +0000 (21:07 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 15 Oct 2024 19:45:29 +0000 (13:45 -0600)
commiteb052cbb896fee6f947765b44b0d80a54b19ce1a
tree9209354f80363830d4558b23f63e0f7dce889f54
parent3c6896ad2fb876b0a23202f62a83c0d44380c9ea
lmb: add and reserve memory above ram_top

U-Boot does not use memory above ram_top. However, this memory does
need to get registered as part of the memory map, so that subsystems
like EFI pass it on to the operating system as part of the EFI memory
map. Add memory above ram_top and reserve it with the LMB_NOOVERWRITE
flag so that it does not get allocated or re-used.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Suggested-by: Mark Kettenis <kettenis@openbsd.org>
lib/lmb.c