From: Luke Kenneth Casson Leighton Date: Mon, 11 Apr 2022 13:38:25 +0000 (+0100) Subject: dump start of copied memory X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=063153496128bbc8c58731293b2bcc7a4b642741;p=ls2.git dump start of copied memory --- 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: