x86: Add early platform detection
authorThomas Gleixner <tglx@linutronix.de>
Sat, 29 Aug 2009 13:03:59 +0000 (15:03 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 31 Aug 2009 09:09:40 +0000 (11:09 +0200)
commit47a3d5da70f411bc044ecd3c0593b158b09d0efa
tree30d5204e6d11cd81b20bc3fa582762cd4bdd3135
parentdd0a70c8f921708eba29ef9f30dde1f14a74af05
x86: Add early platform detection

Platforms like Moorestown require early setup and want to avoid the
call to reserve_ebda_region. The x86_init override is too late when
the MRST detection happens in setup_arch. Move the default i386
x86_init overrides and the call to reserve_ebda_region into a separate
function which is called as the default of a switch case depending on
the hardware_subarch id in boot params. This allows us to add a case
for MRST and let MRST have its own early setup function.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/x86_init.h
arch/x86/kernel/head32.c
arch/x86/kernel/head64.c
arch/x86/kernel/x86_init.c