Next: , Previous: Template Drivers, Up: Software Environment


4.7 Fault Detection

Fatal errors when detected will cause the system to reboot. The system API fatal() can be used to cause a fatal error at any time. A list of the error codes is kept in include/sys/errno.h.

There is also the nonfatal() API for logging errors which will not cause a reset. These are audited and when DEBUGGER is defined, it will display a brief message on the DMD.

The core operating system code throws fatal errors in several key circumstances: