summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-27 12:16:40 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-27 12:16:40 +0200
commitccb593dfde59db940f78ec1094de81968642993e (patch)
tree6799eecd230727cb60d7d5acc1ceebcdbd86dabc /arch
parent109449f49f23ad024cef0b690e8a8353f66270a3 (diff)
downloadbarebox-ccb593dfde59db940f78ec1094de81968642993e.tar.gz
barebox-ccb593dfde59db940f78ec1094de81968642993e.tar.xz
blackfin_linux.c: disable icache unconditionally. If I understand the
Manual correctly, there is no need to invalidate the cache beforehand (in fact on my board this function crashes)
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/lib/blackfin_linux.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/blackfin/lib/blackfin_linux.c b/arch/blackfin/lib/blackfin_linux.c
index e0751095ba..efa0e7d41a 100644
--- a/arch/blackfin/lib/blackfin_linux.c
+++ b/arch/blackfin/lib/blackfin_linux.c
@@ -49,14 +49,11 @@ int do_bootm_linux(struct image_handle *os_handle, struct image_handle *initrd)
if (relocate_image(os_handle, (void *)ntohl(os_header->ih_load)))
return -1;
+ icache_disable();
+
strncpy(cmdlinedest, cmdline, 0x1000);
cmdlinedest[0xfff] = 0;
- if(icache_status()){
- flush_instruction_cache();
- icache_disable();
- }
-
(*appl)(cmdlinedest);
return -1;