]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_nios2/bootm.c
TI DaVinci: Adding Copyright for DM365 EVM
[karo-tx-uboot.git] / lib_nios2 / bootm.c
index cb843246b87e3c4f5ae437d5832d65bd9f482465..53fd5691ad7dd9c288d0b252fa061db0f99edd6b 100644 (file)
 #include <command.h>
 #include <asm/byteorder.h>
 
-void do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
-               image_header_t *hdr, int verify)
+int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 {
-       void (*kernel)(void) = (void (*)(void))image_get_ep (hdr);
+       void (*kernel)(void) = (void (*)(void))images->ep;
+
+       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
+               return 1;
 
        /* For now we assume the Microtronix linux ... which only
         * needs to be called ;-)
         */
        kernel ();
+       /* does not return */
+
+       return 1;
 }