x86_init.c 1020 字节
Newer Older
1 2 3 4 5 6 7
/*
 * Copyright (C) 2009 Thomas Gleixner <tglx@linutronix.de>
 *
 *  For licencing details see kernel-base/COPYING
 */
#include <linux/init.h>

8
#include <asm/bios_ebda.h>
9
#include <asm/mpspec.h>
10
#include <asm/setup.h>
11
#include <asm/e820.h>
12 13

void __cpuinit x86_init_noop(void) { }
14
void __init x86_init_uint_noop(unsigned int unused) { }
15 16 17 18 19 20

/*
 * The platform setup functions are preset with the default functions
 * for standard PC hardware.
 */
struct __initdata x86_init_ops x86_init = {
21 22 23

	.resources = {
		.probe_roms		= x86_init_noop,
24
		.reserve_resources	= reserve_standard_io_resources,
25
		.reserve_ebda_region	= reserve_ebda_region,
26
		.memory_setup		= default_machine_specific_memory_setup,
27
	},
28 29 30

	.mpparse = {
		.mpc_record		= x86_init_uint_noop,
31
		.setup_ioapic_ids	= x86_init_noop,
32
		.mpc_apic_id		= default_mpc_apic_id,
33
		.smp_read_mpc_oem	= default_smp_read_mpc_oem,
34
		.mpc_oem_bus_info	= default_mpc_oem_bus_info,
35 36
		.find_smp_config	= default_find_smp_config,
		.get_smp_config		= default_get_smp_config,
37
	},
38
};