mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fixup! ARM: cpuinfo: add option to print early memory map
@ 2024-07-29 13:51 Ahmad Fatoum
  2024-07-30  7:51 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-07-29 13:51 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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@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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-30  7:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-29 13:51 [PATCH] fixup! ARM: cpuinfo: add option to print early memory map Ahmad Fatoum
2024-07-30  7:51 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox