]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/lib/bootm.c
Merge git://git.denx.de/u-boot
[u-boot] / arch / powerpc / lib / bootm.c
index 137547451b342a192424477a45faae802146f8d4..ac5bd6d4f1599c0b0514a4d4004d17f0c93199af 100644 (file)
@@ -69,7 +69,7 @@ static void boot_jump_linux(bootm_headers_t *images)
        debug ("## Transferring control to Linux (at address %08lx) ...\n",
                (ulong)kernel);
 
-       show_boot_progress (15);
+       bootstage_mark(BOOTSTAGE_ID_RUN_OS);
 
 #if defined(CONFIG_SYS_INIT_RAM_LOCK) && !defined(CONFIG_E500)
        unlock_ram_in_cache();
@@ -174,14 +174,16 @@ void arch_lmb_reserve(struct lmb *lmb)
        return ;
 }
 
-static void boot_prep_linux(void)
+static void boot_prep_linux(bootm_headers_t *images)
 {
 #ifdef CONFIG_MP
-       /* if we are MP make sure to flush the dcache() to any changes are made
-        * visibile to all other cores */
-       flush_dcache();
+       /*
+        * if we are MP make sure to flush the device tree so any changes are
+        * made visibile to all other cores.  In AMP boot scenarios the cores
+        * might not be HW cache coherent with each other.
+        */
+       flush_cache((unsigned long)images->ft_addr, images->ft_len);
 #endif
-       return ;
 }
 
 static int boot_cmdline_linux(bootm_headers_t *images)
@@ -324,7 +326,7 @@ static int boot_body_linux(bootm_headers_t *images)
        return 0;
 }
 
-__attribute__((noinline))
+noinline
 int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images)
 {
        int     ret;
@@ -340,7 +342,7 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
        }
 
        if (flag & BOOTM_STATE_OS_PREP) {
-               boot_prep_linux();
+               boot_prep_linux(images);
                return 0;
        }
 
@@ -349,7 +351,7 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
                return 0;
        }
 
-       boot_prep_linux();
+       boot_prep_linux(images);
        ret = boot_body_linux(images);
        if (ret)
                return ret;