diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-09-16 00:48:32 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-09-16 00:48:32 -0400 |
commit | ea88023b3491a384575ebcd5e8a449e841a28a24 (patch) | |
tree | f46e3d8302e44dc55ce31823501e100472d29683 /arch/x86/kernel/setup.c | |
parent | a6f15ade97989d414e9bf33874c9d5d1f39808ec (diff) | |
parent | 0cb583fd2862f19ea88b02eb307d11c09e51e2f8 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
arch/sh/kernel/vmlinux.lds.S
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 63f32d220ef2..19f15c4076fb 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -66,6 +66,7 @@ | |||
66 | 66 | ||
67 | #include <linux/percpu.h> | 67 | #include <linux/percpu.h> |
68 | #include <linux/crash_dump.h> | 68 | #include <linux/crash_dump.h> |
69 | #include <linux/tboot.h> | ||
69 | 70 | ||
70 | #include <video/edid.h> | 71 | #include <video/edid.h> |
71 | 72 | ||
@@ -711,6 +712,21 @@ void __init setup_arch(char **cmdline_p) | |||
711 | printk(KERN_INFO "Command line: %s\n", boot_command_line); | 712 | printk(KERN_INFO "Command line: %s\n", boot_command_line); |
712 | #endif | 713 | #endif |
713 | 714 | ||
715 | strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE); | ||
716 | *cmdline_p = command_line; | ||
717 | |||
718 | #ifdef CONFIG_X86_64 | ||
719 | /* | ||
720 | * Must call this twice: Once just to detect whether hardware doesn't | ||
721 | * support NX (so that the early EHCI debug console setup can safely | ||
722 | * call set_fixmap(), and then again after parsing early parameters to | ||
723 | * honor the respective command line option. | ||
724 | */ | ||
725 | check_efer(); | ||
726 | #endif | ||
727 | |||
728 | parse_early_param(); | ||
729 | |||
714 | /* VMI may relocate the fixmap; do this before touching ioremap area */ | 730 | /* VMI may relocate the fixmap; do this before touching ioremap area */ |
715 | vmi_init(); | 731 | vmi_init(); |
716 | 732 | ||
@@ -793,11 +809,6 @@ void __init setup_arch(char **cmdline_p) | |||
793 | #endif | 809 | #endif |
794 | #endif | 810 | #endif |
795 | 811 | ||
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 | 812 | #ifdef CONFIG_X86_64 |
802 | check_efer(); | 813 | check_efer(); |
803 | #endif | 814 | #endif |
@@ -977,6 +988,8 @@ void __init setup_arch(char **cmdline_p) | |||
977 | paravirt_pagetable_setup_done(swapper_pg_dir); | 988 | paravirt_pagetable_setup_done(swapper_pg_dir); |
978 | paravirt_post_allocator_init(); | 989 | paravirt_post_allocator_init(); |
979 | 990 | ||
991 | tboot_probe(); | ||
992 | |||
980 | #ifdef CONFIG_X86_64 | 993 | #ifdef CONFIG_X86_64 |
981 | map_vsyscall(); | 994 | map_vsyscall(); |
982 | #endif | 995 | #endif |