issues with IRQ0 (PIT)

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
User avatar
balthasar
Member
Member
Posts: 30
Joined: Mon Mar 31, 2008 8:39 pm
Contact:

issues with IRQ0 (PIT)

Post by balthasar »

I was implementing IRQ's and the PIT (as per JamesM tutorial) and its not working like it should. I do not see the Tick: 1234 thing UNLESS i call the interrupt in this case IRQ0 (32) manually which i know isnt how it works. Included is the code

Ensemble/Includes/Kernel - is where the include files are enclosed
Ensemble/Kernel - is where the kernel resides
Attachments
Ensemble-Source-Current.tar.gz
(21.76 KiB) Downloaded 47 times
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: issues with IRQ0 (PIT)

Post by Creature »

This is probably not going to be the cause of your problem, but do you realize that you've defined all the ISR's as having no error code?

Code: Select all

ISR_NOERRCODE 0
...
ISR_NOERRCODE 31
Whilst ISR 8, 10, 11, 12, 13 and 14 do have an error code.

I've taken a quick glance over the other code but couldn't spot anything wrong at that time. Are you sure you've executed an STI instruction after setting up the descriptor tables to enable hardware interrupts?

In Assembly:

Code: Select all

sti
In inline GCC Assembly:

Code: Select all

__asm__ __volatile__("sti");
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
User avatar
balthasar
Member
Member
Posts: 30
Joined: Mon Mar 31, 2008 8:39 pm
Contact:

Re: issues with IRQ0 (PIT)

Post by balthasar »

thank you for telling about the NOERRCODE thing i overlooked that

also i didnt reenable interrupts hence why it failed :oops: thanks for your help
My OS: NasuTek Ensemble http://code.google.com/p/ensemble/
Post Reply