Interrupts not working under real BIOS [SOLVED]
Posted: Wed Sep 29, 2010 7:39 am
Hello Everyone,
I tried to implement IDT in my kernel (adapted from Bran's Kernel Development Tutorial/IDT).
I have setup the IDT and installed the keyboard and mouse handler. It was working well with both BOCHS and QEMU.
Then, I realized that I should test my kernel under real BIOS so I created floppy disk image for my OS and rebooted under my real BIOS. Then came the hiccup.
As soon as my kernel tries to setup the IDT my fault handler displays the message "General Protection Fault". I searched the forum and found that some other guys had similar problem with IDT but my problem was the "General Protection Fault".
So, if anybody knows what is causing the "General Protection Fault" when I setup the IDT, please help!
I tried to implement IDT in my kernel (adapted from Bran's Kernel Development Tutorial/IDT).
I have setup the IDT and installed the keyboard and mouse handler. It was working well with both BOCHS and QEMU.
Then, I realized that I should test my kernel under real BIOS so I created floppy disk image for my OS and rebooted under my real BIOS. Then came the hiccup.
As soon as my kernel tries to setup the IDT my fault handler displays the message "General Protection Fault". I searched the forum and found that some other guys had similar problem with IDT but my problem was the "General Protection Fault".
So, if anybody knows what is causing the "General Protection Fault" when I setup the IDT, please help!