2 * Machine specific setup for generic
5 #include <linux/config.h>
7 #include <linux/init.h>
9 #include <linux/interrupt.h>
11 #include <asm/arch_hooks.h>
14 * pre_intr_init_hook - initialisation prior to setting up interrupt vectors
17 * Perform any necessary interrupt initialisation prior to setting up
18 * the "ordinary" interrupt call gates. For legacy reasons, the ISA
19 * interrupts should be initialised here if the machine emulates a PC
22 void __init
pre_intr_init_hook(void)
28 * IRQ2 is cascade interrupt to second interrupt controller
30 static struct irqaction irq2
= { no_action
, 0, CPU_MASK_NONE
, "cascade", NULL
, NULL
};
33 * intr_init_hook - post gate setup interrupt initialisation
36 * Fill in any interrupts that may have been left out by the general
37 * init_IRQ() routine. interrupts having to do with the machine rather
38 * than the devices on the I/O bus (like APIC interrupts in intel MP
39 * systems) are started here.
41 void __init
intr_init_hook(void)
43 #ifdef CONFIG_X86_LOCAL_APIC
52 * pre_setup_arch_hook - hook called prior to any setup_arch() execution
55 * generally used to activate any machine specific identification
56 * routines that may be needed before setup_arch() runs. On VISWS
57 * this is used to get the board revision and type.
59 void __init
pre_setup_arch_hook(void)
64 * trap_init_hook - initialise system specific traps
67 * Called as the final act of trap_init(). Used in VISWS to initialise
68 * the various board specific APIC traps.
70 void __init
trap_init_hook(void)
74 static struct irqaction irq0
= { timer_interrupt
, SA_INTERRUPT
, CPU_MASK_NONE
, "timer", NULL
, NULL
};
77 * time_init_hook - do any specific initialisations for the system timer.
80 * Must plug the system timer interrupt source at HZ into the IRQ listed
81 * in irq_vectors.h:TIMER_IRQ
83 void __init
time_init_hook(void)
90 * mca_nmi_hook - hook into MCA specific NMI chain
93 * The MCA (Microchannel Arcitecture) has an NMI chain for NMI sources
94 * along the MCA bus. Use this to hook into that chain if you will need
97 void __init
mca_nmi_hook(void)
99 /* If I recall correctly, there's a whole bunch of other things that
100 * we can do to check for NMI problems, but that's all I know about
104 printk("NMI generated from unknown source!\n");