aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r--arch/x86/kernel/setup.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 63f32d220ef2..eb1f1e6e52b0 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -711,6 +711,21 @@ void __init setup_arch(char **cmdline_p)
711 printk(KERN_INFO "Command line: %s\n", boot_command_line); 711 printk(KERN_INFO "Command line: %s\n", boot_command_line);
712#endif 712#endif
713 713
714 strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE);
715 *cmdline_p = command_line;
716
717#ifdef CONFIG_X86_64
718 /*
719 * Must call this twice: Once just to detect whether hardware doesn't
720 * support NX (so that the early EHCI debug console setup can safely
721 * call set_fixmap(), and then again after parsing early parameters to
722 * honor the respective command line option.
723 */
724 check_efer();
725#endif
726
727 parse_early_param();
728
714 /* VMI may relocate the fixmap; do this before touching ioremap area */ 729 /* VMI may relocate the fixmap; do this before touching ioremap area */
715 vmi_init(); 730 vmi_init();
716 731
@@ -793,11 +808,6 @@ void __init setup_arch(char **cmdline_p)
793#endif 808#endif
794#endif 809#endif
795 810
796 strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE);
797 *cmdline_p = command_line;
798
799 parse_early_param();
800
801#ifdef CONFIG_X86_64 811#ifdef CONFIG_X86_64
802 check_efer(); 812 check_efer();
803#endif 813#endif