summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/i8259_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/i8259_32.c')
-rw-r--r--arch/x86/kernel/i8259_32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/i8259_32.c b/arch/x86/kernel/i8259_32.c
index d34a10cc13a..f634fc715c9 100644
--- a/arch/x86/kernel/i8259_32.c
+++ b/arch/x86/kernel/i8259_32.c
@@ -403,7 +403,8 @@ void __init native_init_IRQ(void)
int vector = FIRST_EXTERNAL_VECTOR + i;
if (i >= NR_IRQS)
break;
- if (vector != SYSCALL_VECTOR)
+ /* SYSCALL_VECTOR was reserved in trap_init. */
+ if (!test_bit(vector, used_vectors))
set_intr_gate(vector, interrupt[i]);
}