]> git.sur5r.net Git - u-boot/blobdiff - lib_arm/bootm.c
microblaze: Correct ffs regression for Microblaze
[u-boot] / lib_arm / bootm.c
index 772fa7f516a669bc7e986eab72d884d3bffc9bbf..128b7e313cdfa6a11719716726dc6956ad5dd43b 100644 (file)
@@ -24,7 +24,7 @@
 #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;
@@ -67,6 +67,9 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
        char *commandline = getenv ("bootargs");
 #endif
 
+       if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
+               return 1;
+
        theKernel = (void (*)(int, int, uint))images->ep;
 
        s = getenv ("machid");