Page 1 of 1
PIT are not working!! :(
Posted: Mon Jun 05, 2023 7:30 am
by BlazeArch
Hello! PIT (timer) does not work in my code. Can anyone help me please?
Here are my code for IDT, IRQ, PIT (timer.c) and GDT.
https://codeberg.org/nekorporation/neko ... /arch/i686
Re: PIT are not working!! :(
Posted: Mon Jun 05, 2023 9:20 am
by Gigasoft
You mean the code that you copied and pasted from a tutorial. You didn't write this code. IRQs don't work because they are disabled in boot.s, line 101.
Re: PIT are not working!! :(
Posted: Mon Jun 05, 2023 3:51 pm
by devc1
haha lol.
I suggest you try to actually read about PIT to understand it's functionnality instead of just copying and pasting code.
And read a bit about interrupts in intel manuals (cpu manual, pic/ioapic manual, apic)