dump start of copied memory
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 11 Apr 2022 13:38:25 +0000 (14:38 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 11 Apr 2022 13:38:25 +0000 (14:38 +0100)
coldboot/coldboot.c

index 782049b672dd608b565f743b6493887b527b9c0e..67cb1ee2560a162ec99bf41e3bd381cb725d05f2 100644 (file)
@@ -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: