A question about double faults

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
TheNNX
Posts: 1
Joined: Sat Nov 13, 2021 7:53 am

A question about double faults

Post by TheNNX »

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
Octocontrabass
Member
Member
Posts: 5418
Joined: Mon Mar 25, 2013 7:01 pm

Re: A question about double faults

Post by Octocontrabass »

TheNNX wrote:when inside another exception handler
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.
Post Reply