]> git.sur5r.net Git - u-boot/blobdiff - lib_nios2/nios_linux.c
[new uImage] Cleanup image header pointer use in bootm code
[u-boot] / lib_nios2 / nios_linux.c
index dea1ec174af947de8982fda9d9346e2a333fda20..cb843246b87e3c4f5ae437d5832d65bd9f482465 100644 (file)
 #include <command.h>
 #include <asm/byteorder.h>
 
-extern image_header_t header;  /* common/cmd_bootm.c */
-
 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, int verify)
 {
-       image_header_t *hdr = &header;
        void (*kernel)(void) = (void (*)(void))image_get_ep (hdr);
 
        /* For now we assume the Microtronix linux ... which only