Protected mode exception keeps reoccuring
Posted: Thu Jan 19, 2012 7:57 am
Hi,
I've just started to get my IDT working (works great for IRQ and INT instructions).
However, in order to test that it was working for protected mode exceptions, I wrote the following assembly code:
in order to generate a divide error (#DE).
My interrupt handler gets called, but the problem is, it gets called multiple times.
I'm using a trap gate in the IDT and I don't disable interrupts in my handler, therefore other interrupts can happen at the same time.
Should protected mode exceptions keep reoccurring, or have I done something wrong (most likely )?
Do I need to acknowledge that I've handled the exception somehow?
Thanks!
I've just started to get my IDT working (works great for IRQ and INT instructions).
However, in order to test that it was working for protected mode exceptions, I wrote the following assembly code:
Code: Select all
mov edx, 0
div edx
My interrupt handler gets called, but the problem is, it gets called multiple times.
I'm using a trap gate in the IDT and I don't disable interrupts in my handler, therefore other interrupts can happen at the same time.
Should protected mode exceptions keep reoccurring, or have I done something wrong (most likely )?
Do I need to acknowledge that I've handled the exception somehow?
Thanks!