]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_nios2/nios_linux.c
[new uImage] Define a API for image handling operations
[karo-tx-uboot.git] / lib_nios2 / nios_linux.c
index 9eb34264d0bca5b2a400251bbab3e1fc16ed5df8..dea1ec174af947de8982fda9d9346e2a333fda20 100644 (file)
@@ -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 ;-)