]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arc/lib/bootm.c
fdt: Implement weak arch_fixup_fdt()
[people/ms/u-boot.git] / arch / arc / lib / bootm.c
index 04d9d9cce574cf0c98306f959bf1fedfb730a699..4d4acff239d41ea5ceb77ae8e5a54f24f3146964 100644 (file)
@@ -80,14 +80,14 @@ static void boot_jump_linux(bootm_headers_t *images, int flag)
                r2 = (unsigned int)images->ft_addr;
        } else {
                r0 = 1;
-               r2 = (unsigned int)getenv("bootargs");
+               r2 = (unsigned int)env_get("bootargs");
        }
 
-       smp_set_core_boot_addr((unsigned long)kernel_entry, -1);
-       smp_kick_all_cpus();
-
-       if (!fake)
+       if (!fake) {
+               smp_set_core_boot_addr((unsigned long)kernel_entry, -1);
+               smp_kick_all_cpus();
                kernel_entry(r0, 0, r2);
+       }
 }
 
 int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)