summaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-11-27 17:51:22 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-11-29 20:59:56 +0100
commit351058fa51dbc010c37906b46ecf67a41dbbad8d (patch)
treed7618117468f050f94ce05cbf0079826b0cb6eac /arch/blackfin
parentec4ee82ca96a6a4867cd3f2e58fed4afd816d14a (diff)
downloadbarebox-351058fa51dbc010c37906b46ecf67a41dbbad8d.tar.gz
barebox-351058fa51dbc010c37906b46ecf67a41dbbad8d.tar.xz
bootm: push relocate_image up to the generic command
All handlers used to just relocate the image without any checks, so we are doomed if we write outside of SDRAM or will overwrite ourselves. Move the relocation up to the generic part where we have a chance of catching these issues. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/lib/blackfin_linux.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/blackfin/lib/blackfin_linux.c b/arch/blackfin/lib/blackfin_linux.c
index a20cf55748..9da9ec4e58 100644
--- a/arch/blackfin/lib/blackfin_linux.c
+++ b/arch/blackfin/lib/blackfin_linux.c
@@ -50,9 +50,6 @@ static int do_bootm_linux(struct image_data *idata)
appl = (int (*)(char *))image_get_ep(os_header);
printf("Starting Kernel at 0x%p\n", appl);
- if (relocate_image(os_handle, (void *)image_get_load(os_header)))
- return -1;
-
icache_disable();
strncpy(cmdlinedest, cmdline, 0x1000);