summaryrefslogtreecommitdiff
path: root/kernel/cpu/idt.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-04-18 16:59:49 +0200
committerAnton Kling <anton@kling.gg>2024-04-18 16:59:49 +0200
commit8868c3184a0cebefbf5dad66a0526496f4607df8 (patch)
tree01dc107bf714d14e27ca3f17926b320868716c5a /kernel/cpu/idt.h
parent568a0b7017e8e779731325083015907b006866c3 (diff)
Kernel: Fix compiler warnings
Diffstat (limited to 'kernel/cpu/idt.h')
-rw-r--r--kernel/cpu/idt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/cpu/idt.h b/kernel/cpu/idt.h
index 9cb6e4d..d866659 100644
--- a/kernel/cpu/idt.h
+++ b/kernel/cpu/idt.h
@@ -322,5 +322,8 @@ typedef struct reg {
void idt_init(void);
__attribute__((no_caller_saved_registers)) void EOI(unsigned char irq);
-void install_handler(void (*handler_function)(), u16 type_attribute, u8 entry);
+
+typedef void (*interrupt_handler)(reg_t *);
+void install_handler(interrupt_handler handler_function, u16 type_attribute,
+ u8 entry);
#endif