From 9a43ead118ec1506848bad9d2bcddfb0fd458552 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 7 Aug 2022 22:07:27 +0200 Subject: kernel: ps2 mouse support --- src/kernel/arch/amd64/interrupts/isr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kernel/arch/amd64/interrupts/isr.c') 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: -- cgit v1.2.3