From ca00b28e8bfdba68f80b1a973f367a6844af2a8f Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Wed, 11 May 2011 23:17:12 +0000 Subject: [PATCH] Fix another case where the local interrupt vector would be added instead of the global system one. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41451 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/ioapic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/ioapic.cpp b/src/system/kernel/arch/x86/ioapic.cpp index fc2d55d9ed..89bcfb094d 100644 --- a/src/system/kernel/arch/x86/ioapic.cpp +++ b/src/system/kernel/arch/x86/ioapic.cpp @@ -279,7 +279,7 @@ ioapic_configure_io_interrupt(int32 gsi, uint32 config) else entry |= (IO_APIC_PIN_POLARITY_HIGH_ACTIVE << IO_APIC_PIN_POLARITY_SHIFT); - entry |= (pin + ARCH_INTERRUPT_BASE) << IO_APIC_INTERRUPT_VECTOR_SHIFT; + entry |= (gsi + ARCH_INTERRUPT_BASE) << IO_APIC_INTERRUPT_VECTOR_SHIFT; ioapic_write_64(*ioapic, IO_APIC_REDIRECTION_TABLE + pin * 2, entry); }