In another exemplary embodiment, a non-transitory computer-readable medium having stored thereon computer-executable instructions is provided. The computer-executable instructions, when executed by a processor, cause the processor to detect a first exception while executing a software process. The computer-executable instructions further cause the processor to, responsive to detecting the first exception, transfer program control to an exception handler corresponding to the first exception. The computer-executable instructions also cause the processor to execute a store operation within the exception handler to store state data in an exception stack. The computer-executable instructions additionally cause the processor to detect a second exception while executing the store operation. The computer-executable instructions further cause the processor to determine that the second exception should be handled as a stack panic fault exception. The computer-executable instructions also cause the processor to, responsive to determining that the second exception should be handled as a stack panic fault exception, save stack panic fault exception state data in a plurality of dedicated stack panic fault exception state registers of the processor, and transfer program control to a stack panic fault exception handler corresponding to the stack panic fault exception.
Those skilled in the art will appreciate the scope of the present disclosure and realize additional embodiments thereof after reading the following detailed description of the preferred embodiments in association with the accompanying drawing figures.