Revision 21cafd08 loader.c
b/loader.c | ||
---|---|---|
456 | 456 |
} |
457 | 457 |
|
458 | 458 |
/* Load a U-Boot image. */ |
459 |
int load_uboot(const char *filename, target_ulong *ep, int *is_linux) |
|
459 |
int load_uboot(const char *filename, target_ulong *ep, target_ulong *loadaddr, |
|
460 |
int *is_linux) |
|
460 | 461 |
{ |
461 | 462 |
int fd; |
462 | 463 |
int size; |
... | ... | |
533 | 534 |
|
534 | 535 |
cpu_physical_memory_write_rom(hdr->ih_load, data, hdr->ih_size); |
535 | 536 |
|
537 |
if (loadaddr) |
|
538 |
*loadaddr = hdr->ih_load; |
|
539 |
|
|
536 | 540 |
ret = hdr->ih_size; |
537 | 541 |
|
538 | 542 |
out: |
Also available in: Unified diff