blob: 7df020e6740df8c331fdc971b088fddb81cbe6bc [file] [log] [blame]
Thomas Gleixner57844a82009-08-19 14:48:38 +02001/*
2 * Copyright (C) 2009 Thomas Gleixner <tglx@linutronix.de>
3 *
4 * For licencing details see kernel-base/COPYING
5 */
6#include <linux/init.h>
7
Thomas Gleixner816c25e2009-08-19 14:36:27 +02008#include <asm/bios_ebda.h>
Thomas Gleixner6f30c1a2009-08-20 13:19:57 +02009#include <asm/paravirt.h>
Thomas Gleixnerfd6c6662009-08-20 10:41:58 +020010#include <asm/mpspec.h>
Thomas Gleixner8fee6972009-08-19 14:55:50 +020011#include <asm/setup.h>
Thomas Gleixner6b18ae32009-08-20 10:19:54 +020012#include <asm/e820.h>
Thomas Gleixnerd9112f42009-08-20 09:41:38 +020013#include <asm/irq.h>
Thomas Gleixner57844a82009-08-19 14:48:38 +020014
15void __cpuinit x86_init_noop(void) { }
Thomas Gleixnerf4848472009-08-20 12:05:01 +020016void __init x86_init_uint_noop(unsigned int unused) { }
Thomas Gleixner030cb6c2009-08-20 14:30:02 +020017void __init x86_init_pgd_noop(pgd_t *unused) { }
Thomas Gleixner57844a82009-08-19 14:48:38 +020018
19/*
20 * The platform setup functions are preset with the default functions
21 * for standard PC hardware.
22 */
23struct __initdata x86_init_ops x86_init = {
Thomas Gleixnerf7cf5a52009-08-19 14:43:56 +020024
25 .resources = {
26 .probe_roms = x86_init_noop,
Thomas Gleixner8fee6972009-08-19 14:55:50 +020027 .reserve_resources = reserve_standard_io_resources,
Thomas Gleixner816c25e2009-08-19 14:36:27 +020028 .reserve_ebda_region = reserve_ebda_region,
Thomas Gleixner6b18ae32009-08-20 10:19:54 +020029 .memory_setup = default_machine_specific_memory_setup,
Thomas Gleixnerf7cf5a52009-08-19 14:43:56 +020030 },
Thomas Gleixnerf4848472009-08-20 12:05:01 +020031
32 .mpparse = {
33 .mpc_record = x86_init_uint_noop,
Thomas Gleixnerde934102009-08-20 09:27:29 +020034 .setup_ioapic_ids = x86_init_noop,
Thomas Gleixnerfd6c6662009-08-20 10:41:58 +020035 .mpc_apic_id = default_mpc_apic_id,
Thomas Gleixner72302142009-08-20 12:18:32 +020036 .smp_read_mpc_oem = default_smp_read_mpc_oem,
Thomas Gleixner90e1c692009-08-20 12:34:47 +020037 .mpc_oem_bus_info = default_mpc_oem_bus_info,
Thomas Gleixnerb3f1b612009-08-20 11:11:52 +020038 .find_smp_config = default_find_smp_config,
39 .get_smp_config = default_get_smp_config,
Thomas Gleixnerf4848472009-08-20 12:05:01 +020040 },
Thomas Gleixnerd9112f42009-08-20 09:41:38 +020041
42 .irqs = {
43 .pre_vector_init = init_ISA_irqs,
Thomas Gleixner66bcaf02009-08-20 09:59:09 +020044 .intr_init = native_init_IRQ,
Thomas Gleixner428cf902009-08-20 10:35:46 +020045 .trap_init = x86_init_noop,
Thomas Gleixnerd9112f42009-08-20 09:41:38 +020046 },
Thomas Gleixner42bbdb42009-08-20 13:04:10 +020047
48 .oem = {
49 .arch_setup = x86_init_noop,
Thomas Gleixner6f30c1a2009-08-20 13:19:57 +020050 .banner = default_banner,
Thomas Gleixner42bbdb42009-08-20 13:04:10 +020051 },
Thomas Gleixner030cb6c2009-08-20 14:30:02 +020052
53 .paging = {
54 .pagetable_setup_start = native_pagetable_setup_start,
55 .pagetable_setup_done = native_pagetable_setup_done,
56 },
Thomas Gleixner57844a82009-08-19 14:48:38 +020057};