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>
Showing
- arch/x86/include/asm/x86_init.h 1 addition, 2 deletionsarch/x86/include/asm/x86_init.h
- arch/x86/kernel/head32.c 17 additions, 5 deletionsarch/x86/kernel/head32.c
- arch/x86/kernel/head64.c 2 additions, 1 deletionarch/x86/kernel/head64.c
- arch/x86/kernel/x86_init.c 0 additions, 1 deletionarch/x86/kernel/x86_init.c
Loading
Please register or sign in to comment