aboutsummaryrefslogtreecommitdiff
path: root/src/interrupts/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interrupts/irq.c')
-rw-r--r--src/interrupts/irq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interrupts/irq.c b/src/interrupts/irq.c
index 70f1eff..cf9e1fe 100644
--- a/src/interrupts/irq.c
+++ b/src/interrupts/irq.c
@@ -50,6 +50,10 @@ void irq_uninstall_handler(int irq) {
irq_routines[irq] = 0;
}
+int irq_is_installed(int irq) {
+ return irq_routines[irq] != 0;
+}
+
// Remap IRQs for protected mode compatibility via the PIC
void irq_remap(void) {
send(0x20, 0x11);