OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 12:17 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: PIT are not working!! :(
PostPosted: Mon Jun 05, 2023 7:30 am 
Offline

Joined: Mon Mar 27, 2023 11:07 am
Posts: 2
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


Top
 Profile  
 
 Post subject: Re: PIT are not working!! :(
PostPosted: Mon Jun 05, 2023 9:20 am 
Offline
Member
Member

Joined: Sat Nov 21, 2009 5:11 pm
Posts: 852
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.


Top
 Profile  
 
 Post subject: Re: PIT are not working!! :(
PostPosted: Mon Jun 05, 2023 3:51 pm 
Offline
Member
Member

Joined: Fri Feb 11, 2022 4:55 am
Posts: 435
Location: behind the keyboard
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], rdos and 88 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group