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!