From bcb79aaff44f126064c4698ea74ffe2b68baeb0e Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 16 Feb 2024 12:59:43 -0600 Subject: arch: i386: move IRQ functions to PIC driver Move all the functions that control IRQ lines to the PIC driver. This allows the IDT controller to handle only raw interrupts no matter where they come from. Signed-off-by: Danny Holman --- arch/i386/include/kernel/pic.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/i386/include/kernel/pic.h') diff --git a/arch/i386/include/kernel/pic.h b/arch/i386/include/kernel/pic.h index af7b5ba..ca3cc99 100644 --- a/arch/i386/include/kernel/pic.h +++ b/arch/i386/include/kernel/pic.h @@ -1,6 +1,7 @@ #ifndef I386_PIC_H #define I386_PIC_H +#include #include #include @@ -46,6 +47,7 @@ uint16_t pic_get_irr(void); uint16_t pic_get_isr(void); void register_irq_handler(uint8_t irq, void (*handler)(struct isr_frame *frame)); +void irq_dispatch(struct isr_frame *frame); void irq_set_mask(uint8_t irq); void irq_clear_mask(uint8_t irq); -- cgit v1.2.3