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
issues with IRQ0 (PIT)
issues with IRQ0 (PIT)
- Attachments
-
- Ensemble-Source-Current.tar.gz
- (21.76 KiB) Downloaded 46 times
Re: issues with IRQ0 (PIT)
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?
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:
In inline GCC Assembly:
Code: Select all
ISR_NOERRCODE 0
...
ISR_NOERRCODE 31
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
Code: Select all
__asm__ __volatile__("sti");
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
Re: issues with IRQ0 (PIT)
thank you for telling about the NOERRCODE thing i overlooked that
also i didnt reenable interrupts hence why it failed thanks for your help
also i didnt reenable interrupts hence why it failed thanks for your help
My OS: NasuTek Ensemble http://code.google.com/p/ensemble/