2009-08-19 08:48:38 -04:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2009 Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
*
|
|
|
|
* For licencing details see kernel-base/COPYING
|
|
|
|
*/
|
|
|
|
#include <linux/init.h>
|
|
|
|
|
2009-08-19 08:36:27 -04:00
|
|
|
#include <asm/bios_ebda.h>
|
2009-08-20 07:19:57 -04:00
|
|
|
#include <asm/paravirt.h>
|
2009-08-20 04:41:58 -04:00
|
|
|
#include <asm/mpspec.h>
|
2009-08-19 08:55:50 -04:00
|
|
|
#include <asm/setup.h>
|
2009-08-19 06:35:53 -04:00
|
|
|
#include <asm/apic.h>
|
2009-08-20 04:19:54 -04:00
|
|
|
#include <asm/e820.h>
|
2009-08-20 03:41:38 -04:00
|
|
|
#include <asm/irq.h>
|
2009-08-19 08:48:38 -04:00
|
|
|
|
|
|
|
void __cpuinit x86_init_noop(void) { }
|
2009-08-20 06:05:01 -04:00
|
|
|
void __init x86_init_uint_noop(unsigned int unused) { }
|
2009-08-20 08:30:02 -04:00
|
|
|
void __init x86_init_pgd_noop(pgd_t *unused) { }
|
2009-08-19 08:48:38 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The platform setup functions are preset with the default functions
|
|
|
|
* for standard PC hardware.
|
|
|
|
*/
|
|
|
|
struct __initdata x86_init_ops x86_init = {
|
2009-08-19 08:43:56 -04:00
|
|
|
|
|
|
|
.resources = {
|
|
|
|
.probe_roms = x86_init_noop,
|
2009-08-19 08:55:50 -04:00
|
|
|
.reserve_resources = reserve_standard_io_resources,
|
2009-08-19 08:36:27 -04:00
|
|
|
.reserve_ebda_region = reserve_ebda_region,
|
2009-08-20 04:19:54 -04:00
|
|
|
.memory_setup = default_machine_specific_memory_setup,
|
2009-08-19 08:43:56 -04:00
|
|
|
},
|
2009-08-20 06:05:01 -04:00
|
|
|
|
|
|
|
.mpparse = {
|
|
|
|
.mpc_record = x86_init_uint_noop,
|
2009-08-20 03:27:29 -04:00
|
|
|
.setup_ioapic_ids = x86_init_noop,
|
2009-08-20 04:41:58 -04:00
|
|
|
.mpc_apic_id = default_mpc_apic_id,
|
2009-08-20 06:18:32 -04:00
|
|
|
.smp_read_mpc_oem = default_smp_read_mpc_oem,
|
2009-08-20 06:34:47 -04:00
|
|
|
.mpc_oem_bus_info = default_mpc_oem_bus_info,
|
2009-08-20 05:11:52 -04:00
|
|
|
.find_smp_config = default_find_smp_config,
|
|
|
|
.get_smp_config = default_get_smp_config,
|
2009-08-20 06:05:01 -04:00
|
|
|
},
|
2009-08-20 03:41:38 -04:00
|
|
|
|
|
|
|
.irqs = {
|
|
|
|
.pre_vector_init = init_ISA_irqs,
|
2009-08-20 03:59:09 -04:00
|
|
|
.intr_init = native_init_IRQ,
|
2009-08-20 04:35:46 -04:00
|
|
|
.trap_init = x86_init_noop,
|
2009-08-20 03:41:38 -04:00
|
|
|
},
|
2009-08-20 07:04:10 -04:00
|
|
|
|
|
|
|
.oem = {
|
|
|
|
.arch_setup = x86_init_noop,
|
2009-08-20 07:19:57 -04:00
|
|
|
.banner = default_banner,
|
2009-08-20 07:04:10 -04:00
|
|
|
},
|
2009-08-20 08:30:02 -04:00
|
|
|
|
|
|
|
.paging = {
|
|
|
|
.pagetable_setup_start = native_pagetable_setup_start,
|
|
|
|
.pagetable_setup_done = native_pagetable_setup_done,
|
|
|
|
},
|
2009-08-19 06:35:53 -04:00
|
|
|
|
|
|
|
.timers = {
|
|
|
|
.setup_percpu_clockev = setup_boot_APIC_clock,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
__cpuinitdata struct x86_cpuinit_ops x86_cpuinit = {
|
|
|
|
.setup_percpu_clockev = setup_secondary_APIC_clock,
|
2009-08-19 08:48:38 -04:00
|
|
|
};
|