diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-10-08 00:04:15 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-10-08 00:04:28 +0800 |
commit | a3c1e5d888d0ee317ffc7635694684bb71213c9c (patch) | |
tree | 24226d1678b57d7a58947fe8899b41facf630878 /arch/blackfin/lib | |
parent | 2fbdb02b11ded2619a0ad023910f8160ead5c48a (diff) | |
download | barebox-a3c1e5d888d0ee317ffc7635694684bb71213c9c.tar.gz barebox-a3c1e5d888d0ee317ffc7635694684bb71213c9c.tar.xz |
Replace direct header access with the API routines
Copied from U-Boot
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/blackfin/lib')
-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 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(); |