diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-07 14:11:38 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-07 14:11:38 +0200 |
commit | f7403928a9ee57ac717e38610dcbb04bb7798734 (patch) | |
tree | 3b7d58ff844b1ea9edbf0147035c62fe4887be5f /arch/blackfin/lib/blackfin_linux.c | |
parent | 884f4d47c697b825a7e69fe51d3b409be58da5d0 (diff) | |
download | barebox-f7403928a9ee57ac717e38610dcbb04bb7798734.tar.gz barebox-f7403928a9ee57ac717e38610dcbb04bb7798734.tar.xz |
Revert "Replace direct header access with the API routines"
This reverts commit 0ceafe14be072696eff3e549d8c7b7de8a3e416d.
Conflicts:
include/image.h
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/blackfin/lib/blackfin_linux.c')
-rw-r--r-- | arch/blackfin/lib/blackfin_linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/lib/blackfin_linux.c b/arch/blackfin/lib/blackfin_linux.c index eda3f4c011..ce5f3a54c2 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 *))image_get_ep(os_header); + appl = (int (*)(char *))ntohl(os_header->ih_ep); printf("Starting Kernel at 0x%08x\n", appl); - if (relocate_image(os_handle, (void *)image_get_load(os_header))) + if (relocate_image(os_handle, (void *)ntohl(os_header->ih_load))) return -1; icache_disable(); |