]> git.sur5r.net Git - u-boot/blobdiff - lib_nios2/bootm.c
i386: Fix link collisions resulting from gcc4.4.1 upgrade
[u-boot] / lib_nios2 / bootm.c
index c74b5d67fe57c6aafe3f52f14ebfbba6af5c0b6c..53fd5691ad7dd9c288d0b252fa061db0f99edd6b 100644 (file)
 #include <command.h>
 #include <asm/byteorder.h>
 
-extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-
-void do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
-               bootm_headers_t *images)
+int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 {
        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;
 
-error:
-       do_reset (cmdtp, flag, argc, argv);
-       return;
+       return 1;
 }