Skip to contentSkip to conversation

Question about odd code in mpparse.c w.r.t IRQ routing

DISCUSSION Andrew de Quincey 1 participant 1 message Jul 31, 2003 ACPI

lore
Share & tools
lore
#0 lore raw

In arch/i386/kernel/mpparse.c/mp_parse_prt(), there is the following section of code:

                ioapic = mp_find_ioapic(irq);
                if (ioapic < 0)
                        continue;
                ioapic_pin = irq - mp_ioapic_routing[ioapic].irq_start;

                if (!ioapic && (irq < 16))
                        irq += 16;

The questionable bit is the last two lines. If the IRQ is found on IO-APIC #0, and it is < 16, then add 16 onto it! This completely breaks things on my TX150 server as some IRQs which are less < 16 get mapped onto the second IO-APIC.

Can someone tell me what this is meant to be doing?

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01