]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arc/lib/bootm.c
arc: implement slave cores kick-start for Linux kernel
[karo-tx-uboot.git] / arch / arc / lib / bootm.c
index d185a50bd318938a130cf5bd97721d4e80944f29..04d9d9cce574cf0c98306f959bf1fedfb730a699 100644 (file)
@@ -53,6 +53,9 @@ static void boot_prep_linux(bootm_headers_t *images)
                hang();
 }
 
+__weak void smp_set_core_boot_addr(unsigned long addr, int corenr) {}
+__weak void smp_kick_all_cpus(void) {}
+
 /* Subcommand: GO */
 static void boot_jump_linux(bootm_headers_t *images, int flag)
 {
@@ -80,6 +83,9 @@ static void boot_jump_linux(bootm_headers_t *images, int flag)
                r2 = (unsigned int)getenv("bootargs");
        }
 
+       smp_set_core_boot_addr((unsigned long)kernel_entry, -1);
+       smp_kick_all_cpus();
+
        if (!fake)
                kernel_entry(r0, 0, r2);
 }