9
0
Fork 0

make blackfin linux start function functional

This commit is contained in:
Sascha Hauer 2007-09-16 11:18:53 +02:00
parent 4940e0f3d5
commit c306c164f0
1 changed files with 4 additions and 6 deletions

View File

@ -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;