diff options
author | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-16 11:18:53 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-16 11:18:53 +0200 |
commit | c306c164f0281654e83e2ae6ac47cb9a1cdfda0c (patch) | |
tree | 644b8924f53879b5269959ad9b97f28b7ed4f177 /arch/blackfin | |
parent | 4940e0f3d503fc7857ff6f35c5990c2390bc12d9 (diff) | |
download | barebox-c306c164f0281654e83e2ae6ac47cb9a1cdfda0c.tar.gz barebox-c306c164f0281654e83e2ae6ac47cb9a1cdfda0c.tar.xz |
make blackfin linux start function functional
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/lib/blackfin_linux.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/blackfin/lib/blackfin_linux.c b/arch/blackfin/lib/blackfin_linux.c index aaf5be7077..e0751095ba 100644 --- a/arch/blackfin/lib/blackfin_linux.c +++ b/arch/blackfin/lib/blackfin_linux.c @@ -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; |