PIT are not working!! :(

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
BlazeArch
Posts: 2
Joined: Mon Mar 27, 2023 11:07 am

PIT are not working!! :(

Post 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
Gigasoft
Member
Member
Posts: 855
Joined: Sat Nov 21, 2009 5:11 pm

Re: PIT are not working!! :(

Post 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.
devc1
Member
Member
Posts: 439
Joined: Fri Feb 11, 2022 4:55 am
Location: behind the keyboard

Re: PIT are not working!! :(

Post 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)
Post Reply