aboutsummaryrefslogtreecommitdiff
path: root/lib_nios2
diff options
context:
space:
mode:
Diffstat (limited to 'lib_nios2')
-rw-r--r--lib_nios2/nios_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib_nios2/nios_linux.c b/lib_nios2/nios_linux.c
index 9eb34264d0b..dea1ec174af 100644
--- a/lib_nios2/nios_linux.c
+++ b/lib_nios2/nios_linux.c
@@ -31,7 +31,7 @@ void do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
ulong addr, ulong *len_ptr, int verify)
{
image_header_t *hdr = &header;
- void (*kernel)(void) = (void (*)(void))ntohl (hdr->ih_ep);
+ void (*kernel)(void) = (void (*)(void))image_get_ep (hdr);
/* For now we assume the Microtronix linux ... which only
* needs to be called ;-)