From a7a72efe2301eeedd0898f9a271fb4d514845f8a Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 26 Nov 2023 18:35:02 -0600 Subject: arch: i386: pic.c: finish implementing functions from pic.h Finish implementing pic_eoi and similar. This allows standardized communication with the x86 PIC chip. Signed-off-by: Danny Holman --- arch/i386/kernel/pic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'arch') diff --git a/arch/i386/kernel/pic.c b/arch/i386/kernel/pic.c index 69a0785..9494b92 100644 --- a/arch/i386/kernel/pic.c +++ b/arch/i386/kernel/pic.c @@ -1,6 +1,8 @@ #include -void pic_eoi(unsigned char irq) { +void (*irq_handlers[16])(struct isr_frame *frame); + +void pic_eoi(uint8_t irq) { if (irq >= 8) outb(PIC2_COMMAND, 0x20); outb(PIC1_COMMAND, 0x20); -- cgit v1.2.3