Changeset 3a4ae6c in rtems for cpukit/sapi/src/fatal.c
- Timestamp:
- Sep 11, 1995, 7:35:39 PM (25 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ced11f99
- Parents:
- 5072b07
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/sapi/src/fatal.c
r5072b07 r3a4ae6c 14 14 15 15 #include <rtems/system.h> 16 #include <rtems/config.h>17 16 #include <rtems/fatal.h> 18 #include <rtems/sysstate.h> 19 #include <rtems/userext.h> 17 #include <rtems/core/interr.h> 20 18 21 19 /*PAGE … … 23 21 * rtems_fatal_error_occurred 24 22 * 25 * This directive will invoke the fatal error handler supplied by the user 26 * followed by the the default one provided by the executive. The default 27 * error handler assumes no hardware is present to help inform the user 28 * of the problem. Halt stores the error code in a known register, 29 * disables interrupts, and halts the CPU. If the CPU does not have a 30 * halt instruction, it will loop to itself. 23 * This directive will invoke the internal fatal error handler. 31 24 * 32 25 * Input parameters: 33 26 * the_error - fatal error status code 34 27 * 35 * Output parameters: 36 * the_error - on stack 37 * status register - on stack 38 * 39 * NOTE: The the_error is not necessarily a directive status code. 28 * Output parameters: NONE 40 29 */ 41 30 … … 44 33 ) 45 34 { 46 47 _User_extensions_Fatal( the_error ); 48 49 _System_state_Set( SYSTEM_STATE_FAILED ); 50 51 _CPU_Fatal_halt( the_error ); 35 _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, FALSE, the_error ); 52 36 53 37 /* will not return from this routine */
Note: See TracChangeset
for help on using the changeset viewer.