Page 1 of 1

[Solved]Hardware IRQs not fired

Posted: Thu Oct 27, 2011 4:42 am
by melgmry0101b
Hi everyone :),
I was working on a keyboard driver.
I completed the handler then i installed it into the IDT.
In the testing when i press any key , nothing happen !.
I returned again and i tried to setup another hardware , and also the same thing <nothing happen!>.
I tested the IDT by firing a software interrupt like <int 0x80> , i found that it is running and also the CPU exceptions are running.
I tested the PIC driver and i got the IMR , i found that all hardware IRQs are enabled (the IMR for the Mater PIC = 00000000 and the slave = 00000000).
I re-read the documents and the tutorials , i found that i am right , but the hardware IRQs cannot fire.
Can anyone help me ?
------------------------------
Thanks in advance :)

Re: Hardware IRQs not fired

Posted: Thu Oct 27, 2011 4:55 am
by Velko
Is IF bit set in FLAGS register? Did you execute sti instruction? You never mentioned that.

Re: Hardware IRQs not fired

Posted: Thu Oct 27, 2011 5:04 am
by gerryg400
Did you check your PIC initialisation code ? Or perhaps the PIC is waiting for EOI already ?

Re: Hardware IRQs not fired

Posted: Thu Oct 27, 2011 5:19 am
by melgmry0101b
Velko wrote:Is IF bit set in FLAGS register? Did you execute sti instruction? You never mentioned that.
Yes , i am using STI and the IF is set.
gerryg400 wrote:Did you check your PIC initialisation code ? Perhaps the PIC is waiting for EOI already ?
I sent EOI after initialization to the master PIC and the slave one and nothing happened.

Re: Hardware IRQs not fired

Posted: Sat Oct 29, 2011 2:46 am
by melgmry0101b
OK , I found that IRR is 0x01 and ISR is 0x01
i sent EOI to empty them and leave the other hardware interrupts to fire, but i couldn't empty them.
Can anyone tell me how to edit them , or what should i do to make it leave the hardware interrupts?
------
Thanks in advance

Re: Hardware IRQs not fired

Posted: Sat Oct 29, 2011 5:08 am
by melgmry0101b
OK , i have solved it , the timer was stopping the other IRQs from launching :)
and thank you for all your replies.