[PATCH] fixup! ARM: cpuinfo: add option to print early memory map
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Jul 29 06:51:37 PDT 2024
ARM: cpu: uncompress: fix endmem passed to print_pbl_mem_layout
The function expects the end of memory and not a size as second
argument.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
arch/arm/cpu/uncompress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/cpu/uncompress.c b/arch/arm/cpu/uncompress.c
index 0d9fa2c879c9..8f916359b37b 100644
--- a/arch/arm/cpu/uncompress.c
+++ b/arch/arm/cpu/uncompress.c
@@ -93,7 +93,7 @@ void __noreturn barebox_pbl_start(unsigned long membase, unsigned long memsize,
free_mem_end_ptr = barebox_base;
#ifdef DEBUG
- print_pbl_mem_layout(membase, memsize, barebox_base);
+ print_pbl_mem_layout(membase, endmem, barebox_base);
#endif
pr_debug("uncompressing barebox binary at 0x%p (size 0x%08x) to 0x%08lx (uncompressed size: 0x%08x)\n",
--
2.39.2
More information about the barebox
mailing list