From: Randolph Sapp <[email protected]> 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 <[email protected]> --- 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

