From b0c501514087f12b0b2b62e9e0424a768f6f898a Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Sun, 5 Sep 2010 08:20:47 +0000 Subject: [PATCH] If source_index is != 0 it is hardwired to a GSI (Global System Interrupt). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38532 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_int.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/arch/x86/arch_int.cpp b/src/system/kernel/arch/x86/arch_int.cpp index f7dd272925..b7ca2cd520 100644 --- a/src/system/kernel/arch/x86/arch_int.cpp +++ b/src/system/kernel/arch/x86/arch_int.cpp @@ -671,8 +671,8 @@ ioapic_init(kernel_args* args) config |= irqDescriptor.polarity; config |= irqDescriptor.interrupt_mode; - int32 num = -1; - for (int a = 0; a < 16; a++) { + int32 num = entry.source_index; + for (int a = 0; a < 16 && num == 0; a++) { if (irqDescriptor.irq >> i & 0x01) { num = a; break;