make blackfin linux start function functional
This commit is contained in:
parent
4940e0f3d5
commit
c306c164f0
|
@ -44,7 +44,10 @@ int do_bootm_linux(struct image_handle *os_handle, struct image_handle *initrd)
|
|||
image_header_t *os_header = &os_handle->header;
|
||||
|
||||
appl = (int (*)(char *))ntohl(os_header->ih_ep);
|
||||
printf("Starting Kernel at = %x\n", appl);
|
||||
printf("Starting Kernel at 0x%08x\n", appl);
|
||||
|
||||
if (relocate_image(os_handle, (void *)ntohl(os_header->ih_load)))
|
||||
return -1;
|
||||
|
||||
strncpy(cmdlinedest, cmdline, 0x1000);
|
||||
cmdlinedest[0xfff] = 0;
|
||||
|
@ -54,11 +57,6 @@ int do_bootm_linux(struct image_handle *os_handle, struct image_handle *initrd)
|
|||
icache_disable();
|
||||
}
|
||||
|
||||
if(dcache_status()){
|
||||
flush_data_cache();
|
||||
dcache_disable();
|
||||
}
|
||||
|
||||
(*appl)(cmdlinedest);
|
||||
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue