summaryrefslogtreecommitdiff
path: root/src/hardware/interrupts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardware/interrupts.c')
-rw-r--r--src/hardware/interrupts.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/hardware/interrupts.c b/src/hardware/interrupts.c
index 41433a5..faca1fd 100644
--- a/src/hardware/interrupts.c
+++ b/src/hardware/interrupts.c
@@ -109,7 +109,15 @@ void interrupts_init( interrupt_t *interrupt, uint16_t gdt_code_segment_selector
interrupts_register_interrupt_gate( interrupt, IRQ_BASE + 0x01, gdt_code_segment_selector,
&interrupts_handle_irq_0x01, KERNEL_RING, IDT_TYPE_INTERRUPT_GATE );
- // IRQ 11 - PCI, at the moment the RTL8139
+ // IRQ 9 - PCI peripheral
+ interrupts_register_interrupt_gate( interrupt, IRQ_BASE + 0x09, gdt_code_segment_selector,
+ &interrupts_handle_irq_0x09, KERNEL_RING, IDT_TYPE_INTERRUPT_GATE );
+
+ // IRQ 10 - PCI peripheral
+ interrupts_register_interrupt_gate( interrupt, IRQ_BASE + 0x0A, gdt_code_segment_selector,
+ &interrupts_handle_irq_0x0A, KERNEL_RING, IDT_TYPE_INTERRUPT_GATE );
+
+ // IRQ 11 - PCI peripheral
interrupts_register_interrupt_gate( interrupt, IRQ_BASE + 0x0B, gdt_code_segment_selector,
&interrupts_handle_irq_0x0B, KERNEL_RING, IDT_TYPE_INTERRUPT_GATE );