Skip to contentSkip to conversation

params: move core_param() parsing to before setup_arch.

RFC In review Rusty Russell 1 participant 1 message Dec 1, 2008

lore
Share & tools
lore
#0 lore raw

RFC 6/8 params: move core_param() parsing to before setup_arch.

---
 init/main.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
init/main.c +3 -3
@@ -563,6 +563,9 @@ asmlinkage void __init start_kernel(void
 asmlinkage void __init start_kernel(void)
 {
 	arch_get_boot_command_line();
+	parse_args("Core params", boot_command_line, __start___core_param,
+		   __stop___core_param - __start___core_param,
+		   unknown_core_ok, true);
 
 	smp_setup_processor_id();
 
@@ -592,9 +595,6 @@ asmlinkage void __init start_kernel(void
 	setup_arch();
 	mm_init_owner(&init_mm, &init_task);
 	setup_command_line();
-	parse_args("Core params", boot_command_line, __start___core_param,
-		   __stop___core_param - __start___core_param,
-		   unknown_core_ok, true);
 
 	unwind_setup();
 	setup_per_cpu_areas();