Training
×

Hardware Faults

Handling hardware exceptions is a bit different: there is a fixed handler in the system; this handler can be configured by SetRtExceptionHandler.
In the case of a hardware exception, a message is sent to the data mailbox, whose handle is cataloged as HW_FAULT_MBX and then the system hardware handler is executed. The mailbox name is looked up in both the current process and the root process and the message is sent to both, if present. There should be exactly one thread waiting at such a mailbox, or else the waiting threads will take turns.