#include <common.h>
#include <command.h>
#include <image.h>
-#include <zlib.h>
+#include <u-boot/zlib.h>
#include <asm/byteorder.h>
DECLARE_GLOBAL_DATA_PTR;
-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)
{
/* First parameter is mapped to $r5 for kernel boot args */
- void (*theKernel) (char *);
- char *commandline = getenv ("bootargs");
+ void (*theKernel) (char *);
+ char *commandline = getenv ("bootargs");
- theKernel = (void (*)(char *))image_get_ep (hdr);
+ if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
+ return 1;
+
+ theKernel = (void (*)(char *))images->ep;
show_boot_progress (15);
#endif
theKernel (commandline);
+ /* does not return */
+
+ return 1;
}