The FATAL error extension is associated with the fatal_error_occurred directive. If this extension is defined in any static or dynamic extension set and the fatal_error_occurred directive has been invoked, then this extension will be called. This extension should have a prototype similar to the following:
void user_fatal_error( Internal_errors_Source the_source, bool is_internal, uint32_t the_error );
where the_error is the error code passed to the fatal_error_occurred directive. This extension is invoked from the fatal_error_occurred directive.
If defined, the user's FATAL error extension is invoked before RTEMS' default fatal error routine is invoked and the processor is stopped. For example, this extension could be used to pass control to a debugger when a fatal error occurs. This extension should not call any RTEMS directives.
Copyright © 1988-2008 OAR Corporation