aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
authorZachary Amsden <zach@vmware.com>2008-12-13 12:36:58 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2008-12-14 16:24:38 -0800
commitae8d04e2ecbb233926860e9ce145eac19c7835dc (patch)
treec6553749f2428e6b828af9b5a165c0ce31cb71f6 /arch/x86/kernel/setup.c
parentca7e716c7833aeaeb8fedd6d004c5f5d5e14d325 (diff)
downloadkernel_samsung_smdk4412-ae8d04e2ecbb233926860e9ce145eac19c7835dc.zip
kernel_samsung_smdk4412-ae8d04e2ecbb233926860e9ce145eac19c7835dc.tar.gz
kernel_samsung_smdk4412-ae8d04e2ecbb233926860e9ce145eac19c7835dc.tar.bz2
x86 Fix VMI crash on boot in 2.6.28-rc8
VMI initialiation can relocate the fixmap, causing early_ioremap to malfunction if it is initialized before the relocation. To fix this, VMI activation is split into two phases; the detection, which must happen before setting up ioremap, and the activation, which must happen after parsing early boot parameters. This fixes a crash on boot when VMI is enabled under VMware. Signed-off-by: Zachary Amsden <zach@vmware.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r--arch/x86/kernel/setup.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 9d5674f..bdec76e 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -794,6 +794,9 @@ void __init setup_arch(char **cmdline_p)
printk(KERN_INFO "Command line: %s\n", boot_command_line);
#endif
+ /* VMI may relocate the fixmap; do this before touching ioremap area */
+ vmi_init();
+
early_cpu_init();
early_ioremap_init();
@@ -880,13 +883,8 @@ void __init setup_arch(char **cmdline_p)
check_efer();
#endif
-#if defined(CONFIG_VMI) && defined(CONFIG_X86_32)
- /*
- * Must be before kernel pagetables are setup
- * or fixmap area is touched.
- */
- vmi_init();
-#endif
+ /* Must be before kernel pagetables are setup */
+ vmi_activate();
/* after early param, so could get panic from serial */
reserve_early_setup_data();