}
puts("Booting from DRAM at");
- uart_writeuint32((unsigned int)ehdr.e_entry);
+ uart_writeuint32((unsigned int)(dst_offs+ehdr.e_entry));
puts("\r\n");
puts("Dump DRAM\r\n");
for (i = 0; i < 64; i++) {
- uart_writeuint32(readl(ehdr.e_entry+(i*4)));
+ uart_writeuint32(readl(dst_offs+ehdr.e_entry+(i*4)));
puts(" ");
if ((i & 7) == 7) puts("\r\n");
}
puts("\r\n");
//flush_cpu_icache();
- return ehdr.e_entry;
+ return dst_offs+ehdr.e_entry;
dump:
puts("HDR: \r\n");
for (i = 0; i < 8; i++) {