From 063153496128bbc8c58731293b2bcc7a4b642741 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 11 Apr 2022 14:38:25 +0100 Subject: [PATCH] dump start of copied memory --- coldboot/coldboot.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index 782049b..67cb1ee 100644 --- a/coldboot/coldboot.c +++ b/coldboot/coldboot.c @@ -156,6 +156,15 @@ static unsigned long copy_flash(unsigned int offset) puts("Booting from DRAM at"); uart_writeuint32((unsigned int)ehdr.e_entry); + puts("\r\n"); + + puts("Dump DRAM\r\n"); + for (i = 0; i < 64; i++) { + uart_writeuint32(ehdr.e_entry+(i*4)); + if ((i & 7) == 7) puts("\r\n"); + } + puts("\r\n"); + //flush_cpu_icache(); return ehdr.e_entry; dump: -- 2.30.2