diff options
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index a55f6609fe1f..f327bccf5089 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -697,21 +697,6 @@ void __init setup_arch(char **cmdline_p) | |||
697 | printk(KERN_INFO "Command line: %s\n", boot_command_line); | 697 | printk(KERN_INFO "Command line: %s\n", boot_command_line); |
698 | #endif | 698 | #endif |
699 | 699 | ||
700 | strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE); | ||
701 | *cmdline_p = command_line; | ||
702 | |||
703 | #ifdef CONFIG_X86_64 | ||
704 | /* | ||
705 | * Must call this twice: Once just to detect whether hardware doesn't | ||
706 | * support NX (so that the early EHCI debug console setup can safely | ||
707 | * call set_fixmap(), and then again after parsing early parameters to | ||
708 | * honor the respective command line option. | ||
709 | */ | ||
710 | check_efer(); | ||
711 | #endif | ||
712 | |||
713 | parse_early_param(); | ||
714 | |||
715 | /* VMI may relocate the fixmap; do this before touching ioremap area */ | 700 | /* VMI may relocate the fixmap; do this before touching ioremap area */ |
716 | vmi_init(); | 701 | vmi_init(); |
717 | 702 | ||
@@ -794,6 +779,21 @@ void __init setup_arch(char **cmdline_p) | |||
794 | #endif | 779 | #endif |
795 | #endif | 780 | #endif |
796 | 781 | ||
782 | strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE); | ||
783 | *cmdline_p = command_line; | ||
784 | |||
785 | #ifdef CONFIG_X86_64 | ||
786 | /* | ||
787 | * Must call this twice: Once just to detect whether hardware doesn't | ||
788 | * support NX (so that the early EHCI debug console setup can safely | ||
789 | * call set_fixmap(), and then again after parsing early parameters to | ||
790 | * honor the respective command line option. | ||
791 | */ | ||
792 | check_efer(); | ||
793 | #endif | ||
794 | |||
795 | parse_early_param(); | ||
796 | |||
797 | #ifdef CONFIG_X86_64 | 797 | #ifdef CONFIG_X86_64 |
798 | check_efer(); | 798 | check_efer(); |
799 | #endif | 799 | #endif |