summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2023-11-26 18:35:02 -0600
committerDanny Holman <dholman@gymli.org>2023-11-26 18:35:02 -0600
commita7a72efe2301eeedd0898f9a271fb4d514845f8a (patch)
tree139051082bacce8b70d2b0c858f4e348038228e5 /arch
parent36df25cf639c44018f51775abe5a8c229a4e2f74 (diff)
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 <dholman@gymli.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/kernel/pic.c4
1 files changed, 3 insertions, 1 deletions
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 <kernel/pic.h>
-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);