summaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-09-23 21:32:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-09-24 08:46:22 +0200
commit0ceafe14be072696eff3e549d8c7b7de8a3e416d (patch)
treec0ea8344342f23ab546e26a78753452075294619 /arch/blackfin
parentaba80a2d2d0f1b25185246925577ce2108247dde (diff)
downloadbarebox-0ceafe14be072696eff3e549d8c7b7de8a3e416d.tar.gz
barebox-0ceafe14be072696eff3e549d8c7b7de8a3e416d.tar.xz
Replace direct header access with the API routines
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/lib/blackfin_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/lib/blackfin_linux.c b/arch/blackfin/lib/blackfin_linux.c
index ce5f3a54c2..eda3f4c011 100644
--- a/arch/blackfin/lib/blackfin_linux.c
+++ b/arch/blackfin/lib/blackfin_linux.c
@@ -47,10 +47,10 @@ static int do_bootm_linux(struct image_data *idata)
struct image_handle *os_handle = idata->os;
image_header_t *os_header = &os_handle->header;
- appl = (int (*)(char *))ntohl(os_header->ih_ep);
+ appl = (int (*)(char *))image_get_ep(os_header);
printf("Starting Kernel at 0x%08x\n", appl);
- if (relocate_image(os_handle, (void *)ntohl(os_header->ih_load)))
+ if (relocate_image(os_handle, (void *)image_get_load(os_header)))
return -1;
icache_disable();