Commit 9a2e5930 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

x86: setup_arch 32bit move command line copying early

Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 7465252e
...@@ -382,6 +382,9 @@ void __init setup_arch(char **cmdline_p) ...@@ -382,6 +382,9 @@ void __init setup_arch(char **cmdline_p)
bss_resource.start = virt_to_phys(&__bss_start); bss_resource.start = virt_to_phys(&__bss_start);
bss_resource.end = virt_to_phys(&__bss_stop)-1; 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_setup_data();
parse_early_param(); parse_early_param();
...@@ -402,9 +405,6 @@ void __init setup_arch(char **cmdline_p) ...@@ -402,9 +405,6 @@ void __init setup_arch(char **cmdline_p)
insert_resource(&iomem_resource, &data_resource); insert_resource(&iomem_resource, &data_resource);
insert_resource(&iomem_resource, &bss_resource); insert_resource(&iomem_resource, &bss_resource);
strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE);
*cmdline_p = command_line;
if (efi_enabled) if (efi_enabled)
efi_init(); efi_init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment