From: Yinghai Lu Date: Tue, 24 Jun 2008 02:54:23 +0000 (-0700) Subject: x86: setup_arch 32bit move command line copying early X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9a2e59302668b9ac2fb2a2c9bca1fc793c5d0409;p=openwrt%2Fstaging%2Fblogic.git x86: setup_arch 32bit move command line copying early Signed-off-by: Yinghai Lu Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c index 52f4e01bb655..243b2f7ca137 100644 --- a/arch/x86/kernel/setup_32.c +++ b/arch/x86/kernel/setup_32.c @@ -382,6 +382,9 @@ void __init setup_arch(char **cmdline_p) bss_resource.start = virt_to_phys(&__bss_start); bss_resource.end = virt_to_phys(&__bss_stop)-1; + strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE); + *cmdline_p = command_line; + parse_setup_data(); parse_early_param(); @@ -402,9 +405,6 @@ void __init setup_arch(char **cmdline_p) insert_resource(&iomem_resource, &data_resource); insert_resource(&iomem_resource, &bss_resource); - strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE); - *cmdline_p = command_line; - if (efi_enabled) efi_init();