Changeset 3a4ae6c in rtems for cpukit/sapi/src/fatal.c


Ignore:
Timestamp:
Sep 11, 1995, 7:35:39 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ced11f99
Parents:
5072b07
Message:

The word "RTEMS" almost completely removed from the core.

Configuration Table Template file added and all tests
modified to use this. All gvar.h and conftbl.h files
removed from test directories.

Configuration parameter maximum_devices added.

Core semaphore and mutex handlers added and RTEMS API Semaphore
Manager updated to reflect this.

Initialization sequence changed to invoke API specific initialization
routines. Initialization tasks table now owned by RTEMS Tasks Manager.

Added user extension for post-switch.

Utilized user extensions to implement API specific functionality
like signal dispatching.

Added extensions to the System Initialization Thread so that an
API can register a function to be invoked while the system
is being initialized. These are largely equivalent to the
pre-driver and post-driver hooks.

Added the Modules file oar-go32_p5, modified oar-go32, and modified
the file make/custom/go32.cfg to look at an environment varable which
determines what CPU model is being used.

All BSPs updated to reflect named devices and clock driver's IOCTL
used by the Shared Memory Driver. Also merged clock isr into
main file and removed ckisr.c where possible.

Updated spsize to reflect new and moved variables.

Makefiles for the executive source and include files updated to show
break down of files into Core, RTEMS API, and Neither.

Header and inline files installed into subdirectory based on whether
logically in the Core or a part of the RTEMS API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/src/fatal.c

    r5072b07 r3a4ae6c  
    1414
    1515#include <rtems/system.h>
    16 #include <rtems/config.h>
    1716#include <rtems/fatal.h>
    18 #include <rtems/sysstate.h>
    19 #include <rtems/userext.h>
     17#include <rtems/core/interr.h>
    2018
    2119/*PAGE
     
    2321 *  rtems_fatal_error_occurred
    2422 *
    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.
    3124 *
    3225 *  Input parameters:
    3326 *    the_error - fatal error status code
    3427 *
    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
    4029 */
    4130
     
    4433)
    4534{
    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 );
    5236
    5337/* will not return from this routine */
Note: See TracChangeset for help on using the changeset viewer.