aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/irq_vectors.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@suse.cz>2008-05-28 06:42:57 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-02 05:55:52 -0400
commitc46e62f73569d7ef42255bd6f31e35925b7f1492 (patch)
tree388101fe2d786104e63f3438cad2064cce893bbb /include/asm-x86/irq_vectors.h
parentec42418f1973e1f77da1fcca3be59c0acb878a9d (diff)
i8259: fix final ugliness
Introduce IRQx_VECTOR on 32-bit, so that #ifdef noise is kept down. There should be no object code change. [ mingo@elte.hu: merged to x86/irq not x86/i8259 due to x86/irq having restructured the vector code into asm-x86/irq_vectors.h, which this patch touches. ] Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/irq_vectors.h')
-rw-r--r--include/asm-x86/irq_vectors.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-x86/irq_vectors.h b/include/asm-x86/irq_vectors.h
index 3cb6d8c77b39..b58581e2e24e 100644
--- a/include/asm-x86/irq_vectors.h
+++ b/include/asm-x86/irq_vectors.h
@@ -18,17 +18,20 @@
18#endif 18#endif
19 19
20/* 20/*
21 * Vectors 0x20-0x2f are used for ISA interrupts on 32 bit.
22 *
23 * Reserve the lowest usable priority level 0x20 - 0x2f for triggering 21 * Reserve the lowest usable priority level 0x20 - 0x2f for triggering
24 * cleanup after irq migration on 64 bit. 22 * cleanup after irq migration on 64 bit.
25 */ 23 */
26#define IRQ_MOVE_CLEANUP_VECTOR FIRST_EXTERNAL_VECTOR 24#define IRQ_MOVE_CLEANUP_VECTOR FIRST_EXTERNAL_VECTOR
27 25
28/* 26/*
29 * Vectors 0x30-0x3f are used for ISA interrupts on 64 bit 27 * Vectors 0x20-0x2f are used for ISA interrupts on 32 bit.
28 * Vectors 0x30-0x3f are used for ISA interrupts on 64 bit.
30 */ 29 */
30#ifdef CONFIG_X86_32
31#define IRQ0_VECTOR (FIRST_EXTERNAL_VECTOR)
32#else
31#define IRQ0_VECTOR (FIRST_EXTERNAL_VECTOR + 0x10) 33#define IRQ0_VECTOR (FIRST_EXTERNAL_VECTOR + 0x10)
34#endif
32#define IRQ1_VECTOR (IRQ0_VECTOR + 1) 35#define IRQ1_VECTOR (IRQ0_VECTOR + 1)
33#define IRQ2_VECTOR (IRQ0_VECTOR + 2) 36#define IRQ2_VECTOR (IRQ0_VECTOR + 2)
34#define IRQ3_VECTOR (IRQ0_VECTOR + 3) 37#define IRQ3_VECTOR (IRQ0_VECTOR + 3)