[PATCHv6 1/3] sandbox: add board_get_usable_ram_top
rs at ti.com
rs at ti.com
Sat May 9 00:29:09 CEST 2026
From: Randolph Sapp <rs at ti.com>
Add a board_get_usable_ram_top definition, since currently ram_top is
equal to ram_size. Attempting to actually map ram_size with map_sysmem
results in a fault.
Signed-off-by: Randolph Sapp <rs at ti.com>
---
board/sandbox/sandbox.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c
index 13006a0ffc2..88c7636d3ca 100644
--- a/board/sandbox/sandbox.c
+++ b/board/sandbox/sandbox.c
@@ -105,6 +105,11 @@ int dram_init(void)
return 0;
}
+phys_addr_t board_get_usable_ram_top(phys_size_t total_size)
+{
+ return gd->ram_size - 1;
+}
+
int ft_board_setup(void *fdt, struct bd_info *bd)
{
/* Create an arbitrary reservation to allow testing OF_BOARD_SETUP.*/
--
2.54.0
More information about the U-Boot
mailing list