Author: tqh Date: 2010-09-05 10:20:47 +0200 (Sun, 05 Sep 2010) New Revision: 38532 Changeset: http://dev.haiku-os.org/changeset/38532 Modified: haiku/trunk/src/system/kernel/arch/x86/arch_int.cpp Log: If source_index is != 0 it is hardwired to a GSI (Global System Interrupt). Modified: haiku/trunk/src/system/kernel/arch/x86/arch_int.cpp =================================================================== --- haiku/trunk/src/system/kernel/arch/x86/arch_int.cpp 2010-09-05 08:09:00 UTC (rev 38531) +++ haiku/trunk/src/system/kernel/arch/x86/arch_int.cpp 2010-09-05 08:20:47 UTC (rev 38532) @@ -671,8 +671,8 @@ 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;