aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/i8259.c
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-20 10:29:43 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-05-20 10:29:43 +0000
commit044735992c3be9c0a48b87c1efdca98f363c7ae2 (patch)
tree47f197831f987f1b48f1c43cf950ade79da045eb /xen/arch/x86/i8259.c
parent88567052265f4e9c81593e994f944e0a3be626f2 (diff)
downloadxen-044735992c3be9c0a48b87c1efdca98f363c7ae2.tar.gz
xen-044735992c3be9c0a48b87c1efdca98f363c7ae2.tar.bz2
xen-044735992c3be9c0a48b87c1efdca98f363c7ae2.zip
bitkeeper revision 1.1482 (428dbc17RT9NQ-_ttXtXBKQgwnM38g)
Ensure the static correspondence IRQ0<->FIRST_DEVICE_VECTOR is reflected in the vector_irq[] and irq_vector[] arrays. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/i8259.c')
-rw-r--r--xen/arch/x86/i8259.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/i8259.c b/xen/arch/x86/i8259.c
index 8111260050..91bc24f5d9 100644
--- a/xen/arch/x86/i8259.c
+++ b/xen/arch/x86/i8259.c
@@ -391,18 +391,18 @@ void __init init_IRQ(void)
set_intr_gate(FIRST_EXTERNAL_VECTOR+i, interrupt[i]);
}
-#ifdef CONFIG_SMP
/*
* IRQ0 must be given a fixed assignment and initialized,
* because it's used before the IO-APIC is set up.
*/
+ irq_vector[0] = FIRST_DEVICE_VECTOR;
+ vector_irq[FIRST_DEVICE_VECTOR] = 0;
set_intr_gate(FIRST_DEVICE_VECTOR, interrupt[0]);
/* Various IPI functions. */
set_intr_gate(EVENT_CHECK_VECTOR, event_check_interrupt);
set_intr_gate(INVALIDATE_TLB_VECTOR, invalidate_interrupt);
set_intr_gate(CALL_FUNCTION_VECTOR, call_function_interrupt);
-#endif
/* Self-generated IPI for local APIC timer. */
set_intr_gate(LOCAL_TIMER_VECTOR, apic_timer_interrupt);