From e03b2ed579e84967648796897bd8aaf4256319e9 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sun, 20 Apr 2025 19:56:27 -0400 Subject: PIT (timer) --- kernel/cpu/idt.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'kernel/cpu') diff --git a/kernel/cpu/idt.c b/kernel/cpu/idt.c index 8b4465f..42cf651 100644 --- a/kernel/cpu/idt.c +++ b/kernel/cpu/idt.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "idt.h" #include "pic.h" @@ -153,14 +154,7 @@ int counter = 0; void idt_pic_timer(void) { - // print a message once we know the timer works - // but avoid spamming the logs - if (counter == 3) { - //kputs("pic timer!\n"); - } - if (counter <= 3) { - counter++; - } + ticks++; } void idt_pic_keyboard(void) -- cgit v1.2.3-freya