]> git.sur5r.net Git - u-boot/commitdiff
* Another small fix for booting with disable_of
authorMatthew McClintock <msm@freescale.com>
Wed, 23 Aug 2006 18:32:45 +0000 (13:32 -0500)
committerMatthew McClintock <msm@freescale.com>
Wed, 23 Aug 2006 18:32:45 +0000 (13:32 -0500)
Signed-off-by: Matthew McClintock <msm@freescale.com>
common/cmd_bootm.c

index 27bb494ff056cd3f9fb5559509cb3a5e6dd898b3..04bce762c86c49a60a5f05be1f9289c2fabb6e17 100644 (file)
@@ -508,7 +508,7 @@ fixup_silent_linux ()
 #endif /* CONFIG_SILENT_CONSOLE */
 
 #ifdef CONFIG_PPC
-static void
+static void  __attribute__((noinline))
 do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
                int     argc, char *argv[],
                ulong   addr,
@@ -898,8 +898,6 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
        (*kernel) (kbd, initrd_start, initrd_end, cmd_start, cmd_end);
 
 #else
-       ft_setup(of_flat_tree, kbd, initrd_start, initrd_end);
-       /* ft_dump_blob(of_flat_tree); */
 
 #if defined(CFG_INIT_RAM_LOCK) && !defined(CONFIG_E500)
        unlock_ram_in_cache();
@@ -915,9 +913,12 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
        if (getenv("disable_of") != NULL)
                (*kernel) ((bd_t *)of_flat_tree, initrd_start, initrd_end,
                        cmd_start, cmd_end);
-       else
+       else {
+               ft_setup(of_flat_tree, kbd, initrd_start, initrd_end);
+               /* ft_dump_blob(of_flat_tree); */
                (*kernel) ((bd_t *)of_flat_tree, (ulong)kernel, 0, 0, 0);
-
+       }
+               
 #endif
 }
 #endif /* CONFIG_PPC */