diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-20 19:56:27 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-20 19:56:27 -0400 |
commit | e03b2ed579e84967648796897bd8aaf4256319e9 (patch) | |
tree | f3fa241a86b23e220945f502c7b0816bfb4a4826 /kernel/cpu | |
parent | fix term/gpu memory OOB error, add dynamic kernel identity map with N_IDENT_PTS (diff) | |
download | comus-e03b2ed579e84967648796897bd8aaf4256319e9.tar.gz comus-e03b2ed579e84967648796897bd8aaf4256319e9.tar.bz2 comus-e03b2ed579e84967648796897bd8aaf4256319e9.zip |
PIT (timer)
Diffstat (limited to 'kernel/cpu')
-rw-r--r-- | kernel/cpu/idt.c | 10 |
1 files changed, 2 insertions, 8 deletions
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 <comus/memory.h> #include <comus/asm.h> #include <comus/cpu.h> +#include <comus/drivers/pit.h> #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) |