[PATCH] fixup! ARM: cpuinfo: add option to print early memory map

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux