|
reprogramming the x86 IDT
Hi,
The only reason for this question is learning. I'm trying to handle interrupts. I started with the FreeBSD kernel sources and modified a bit. My code is executed early during the bootstrap process, right after the processor is set in protected mode and most descriptors (IDT, GDT, etc) are set up.
All entries in the IDT point to my own ISR. When executing INTx instructions I see it works fine. However I'm not receiving any hardware interrupts.
I tried issuing a STI instruction to make sure interrupts are enabled and outputting 0x20 to ports 0x20 and 0xA0 to make sure there are no pending EOIs (even if it shouldn't be necessary). However I'm still receiving nothing.
Is there some processor flag I don't know about? What did I miss?
Thanks
|