From 45283c43460900d080478973c873339b5db3013e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 27 Mar 2022 14:47:50 +0200 Subject: kernel/tty: poll only on IRQs, don't burn cycles --- src/kernel/arch/i386/interrupts/isr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kernel/arch/i386/interrupts/isr.c') diff --git a/src/kernel/arch/i386/interrupts/isr.c b/src/kernel/arch/i386/interrupts/isr.c index 1448f44..cc90fae 100644 --- a/src/kernel/arch/i386/interrupts/isr.c +++ b/src/kernel/arch/i386/interrupts/isr.c @@ -24,6 +24,10 @@ void isr_stage3(int interrupt) { irq_eoi(1); return; + case 0x24:; // COM1 irq + irq_eoi(1); + return; + default: // TODO check if the exception was in the kernel process_kill(process_current, interrupt); -- cgit v1.2.3