From a3c1e5d888d0ee317ffc7635694684bb71213c9c Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 8 Oct 2010 00:04:15 +0800 Subject: Replace direct header access with the API routines Copied from U-Boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/blackfin/lib/blackfin_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/blackfin') 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(); -- cgit v1.2.3