Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: hardware IRQ handler: where ?



On Fri, May 22, 2015 at 01:23:48PM +0200, deco33000%yandex.com@localhost wrote:
> I would like to inspect the code which handles the hardware interrupts,
> essentially the part which checks the modules holding the irq number
> (in case multiple devices have a shared irq).

Interrupt handlers start from the assembler stubs in
sys/arch/amd64/amd64/vector.S. They will loop over the list of handlers
(see struct intrhand in arch/x86/include/intr.h) until a device says it
handled it. Note that both legacy i8259 and more modern IOAPIC IRQs have
one assembler stub per interrupt and have the IRQ effectively
hard-coded.

Joerg


Home | Main Index | Thread Index | Old Index