Both the OSDev Wiki and the Intel Software Developer’s Manual state that if an exception occurs when inside another exception handler, under certain condition, the details of which are not really important to the question, a double fault occurs. How does the CPU know if it is executing a handler already? Does IRET clear some internal register which is set when an interrupt occurs?
Thanks
A question about double faults
-
- Member
- Posts: 5560
- Joined: Mon Mar 25, 2013 7:01 pm
Re: A question about double faults
It's not when inside another exception handler, it's when calling another exception handler. As in, after the CPU has detected an exception, but before it can start executing the first instruction of the handler for that exception.TheNNX wrote:when inside another exception handler