summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/interrupts/isr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64/interrupts/isr.c')
-rw-r--r--src/kernel/arch/amd64/interrupts/isr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/arch/amd64/interrupts/isr.c b/src/kernel/arch/amd64/interrupts/isr.c
index 0bfd865..d1c2b26 100644
--- a/src/kernel/arch/amd64/interrupts/isr.c
+++ b/src/kernel/arch/amd64/interrupts/isr.c
@@ -34,9 +34,10 @@ void isr_stage3(int interrupt, uint64_t *stackframe) {
irq_eoi(IRQ_PIT);
return;
- case IRQ_IBASE + IRQ_PS2:
+ case IRQ_IBASE + IRQ_PS2KB:
+ case IRQ_IBASE + IRQ_PS2MOUSE:
ps2_irq();
- irq_eoi(IRQ_PS2);
+ irq_eoi(interrupt - IRQ_IBASE);
return;
case IRQ_IBASE + IRQ_COM1: