The two are logically independent, IDT should be strictly for the interrupt handler ASM <-> C function linkage. This also causes bugs like passing INT_IRQ8 to the register_irq_handler when we should have used IRQ_RTC instead.
However, the IRQ code should probably not go into i8259.c, since that would introduce a circular dependency between i8259.c and idt.c.
The two are logically independent, IDT should be strictly for the interrupt handler ASM <-> C function linkage. This also causes bugs like passing
INT_IRQ8
to theregister_irq_handler
when we should have usedIRQ_RTC
instead.However, the IRQ code should probably not go into
i8259.c
, since that would introduce a circular dependency betweeni8259.c
andidt.c
.