2 * Machine specific setup for generic
6 #include <linux/init.h>
7 #include <linux/interrupt.h>
9 #include <asm/arch_hooks.h>
11 #include <asm/setup.h>
13 #ifdef CONFIG_HOTPLUG_CPU
14 #define DEFAULT_SEND_IPI (1)
16 #define DEFAULT_SEND_IPI (0)
19 int no_broadcast=DEFAULT_SEND_IPI;
22 * pre_intr_init_hook - initialisation prior to setting up interrupt vectors
25 * Perform any necessary interrupt initialisation prior to setting up
26 * the "ordinary" interrupt call gates. For legacy reasons, the ISA
27 * interrupts should be initialised here if the machine emulates a PC
30 void __init pre_intr_init_hook(void)
36 * IRQ2 is cascade interrupt to second interrupt controller
38 static struct irqaction irq2 = {
40 .mask = CPU_MASK_NONE,
45 * intr_init_hook - post gate setup interrupt initialisation
48 * Fill in any interrupts that may have been left out by the general
49 * init_IRQ() routine. interrupts having to do with the machine rather
50 * than the devices on the I/O bus (like APIC interrupts in intel MP
51 * systems) are started here.
53 void __init intr_init_hook(void)
55 #ifdef CONFIG_X86_LOCAL_APIC
64 * pre_setup_arch_hook - hook called prior to any setup_arch() execution
67 * generally used to activate any machine specific identification
68 * routines that may be needed before setup_arch() runs. On VISWS
69 * this is used to get the board revision and type.
71 void __init pre_setup_arch_hook(void)
76 * trap_init_hook - initialise system specific traps
79 * Called as the final act of trap_init(). Used in VISWS to initialise
80 * the various board specific APIC traps.
82 void __init trap_init_hook(void)
86 static struct irqaction irq0 = {
87 .handler = timer_interrupt,
88 .flags = IRQF_DISABLED | IRQF_NOBALANCING | IRQF_IRQPOLL,
89 .mask = CPU_MASK_NONE,
94 * time_init_hook - do any specific initialisations for the system timer.
97 * Must plug the system timer interrupt source at HZ into the IRQ listed
98 * in irq_vectors.h:TIMER_IRQ
100 void __init time_init_hook(void)
102 irq0.mask = cpumask_of_cpu(0);
108 * mca_nmi_hook - hook into MCA specific NMI chain
111 * The MCA (Microchannel Architecture) has an NMI chain for NMI sources
112 * along the MCA bus. Use this to hook into that chain if you will need
115 void mca_nmi_hook(void)
117 /* If I recall correctly, there's a whole bunch of other things that
118 * we can do to check for NMI problems, but that's all I know about
122 printk("NMI generated from unknown source!\n");
126 static __init int no_ipi_broadcast(char *str)
128 get_option(&str, &no_broadcast);
129 printk ("Using %s mode\n", no_broadcast ? "No IPI Broadcast" :
134 __setup("no_ipi_broadcast=", no_ipi_broadcast);
136 static int __init print_ipi_mode(void)
138 printk ("Using IPI %s mode\n", no_broadcast ? "No-Shortcut" :
143 late_initcall(print_ipi_mode);