Do I have to pop the error code pushed to stack by certain exceptions before returning from the interrupt handler?
I have loaded an idt table with 256 entries, all pointing to similar handlers: for exceptions 8 and 10-14, push the exception number (these exceptions push an error code automatically) for the others, push a "dummy" error code and the exception number; then jump to a common handler So when the common handler enters, the stack is properly aligned and contains the exception/interrupt number, error code (which may just be a dummy), eflags, cs and eip. My question regards returning from the interrupt handler. I use iret to return after taking out the exception number and the error code from the