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
This commit is contained in:
Fredrik Holmqvist 2010-09-05 08:20:47 +00:00
parent 00a4277c4a
commit b0c5015140

View File

@ -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;