summaryrefslogtreecommitdiff
path: root/common/cmd_bootm.c
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2006-08-23 13:32:45 -0500
committerMatthew McClintock <msm@freescale.com>2006-08-23 13:32:45 -0500
commitb2b78421d9db49c21a821af8a19c21c1f7dfb29e (patch)
treef89929ebecfcdfe3349c08eedf764ec15ae1f70a /common/cmd_bootm.c
parent86c8e17f25e972a7e272950a0735fad84e082b88 (diff)
downloadu-boot-imx-b2b78421d9db49c21a821af8a19c21c1f7dfb29e.zip
u-boot-imx-b2b78421d9db49c21a821af8a19c21c1f7dfb29e.tar.gz
u-boot-imx-b2b78421d9db49c21a821af8a19c21c1f7dfb29e.tar.bz2
* Another small fix for booting with disable_of
Signed-off-by: Matthew McClintock <msm@freescale.com>
Diffstat (limited to 'common/cmd_bootm.c')
-rw-r--r--common/cmd_bootm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 27bb494..04bce76 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -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 */