summaryrefslogtreecommitdiff
path: root/lib_blackfin
diff options
context:
space:
mode:
Diffstat (limited to 'lib_blackfin')
-rw-r--r--lib_blackfin/bf533_linux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib_blackfin/bf533_linux.c b/lib_blackfin/bf533_linux.c
index 80a3dc7..26c6534 100644
--- a/lib_blackfin/bf533_linux.c
+++ b/lib_blackfin/bf533_linux.c
@@ -52,12 +52,13 @@ void do_bootm_linux(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[],
{
int (*appl) (char *cmdline);
char *cmdline;
+ image_header_t *hdr = &header;
#ifdef SHARED_RESOURCES
swap_to(FLASH);
#endif
- appl = (int (*)(char *))ntohl(header.ih_ep);
+ appl = (int (*)(char *))image_get_ep (hdr);
printf("Starting Kernel at = %x\n", appl);
cmdline = make_command_line();
if (icache_status()) {