Changeset b39e055 in rtems for cpukit/sapi


Ignore:
Timestamp:
Feb 17, 2014, 9:17:20 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
33cb8bf
Parents:
8a6de83
git-author:
Sebastian Huber <sebastian.huber@…> (02/17/14 09:17:20)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/19/14 08:59:39)
Message:

score: Delete INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP

This error case is no longer required since rtems_shutdown_executive()
can be called anytime, anywhere

Location:
cpukit/sapi/src
Files:
2 edited

Legend:

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

    r8a6de83 rb39e055  
    1515
    1616#include <rtems/init.h>
    17 #include <rtems/score/sysstate.h>
    1817#include <rtems/score/interr.h>
    1918
    2019void rtems_shutdown_executive( uint32_t result )
    2120{
    22   Internal_errors_Source  source;
    23   bool                    is_internal;
    24   Internal_errors_t       code;
    25 
    26   if ( _System_state_Is_up( _System_state_Get() ) ) {
    27     source      = RTEMS_FATAL_SOURCE_EXIT;
    28     is_internal = false;
    29     code        = result;
    30   } else {
    31     source      = INTERNAL_ERROR_CORE;
    32     is_internal = true;
    33     code        = INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP;
    34   }
    35 
    36   _Internal_error_Occurred( source, is_internal, code );
     21  _Internal_error_Occurred( RTEMS_FATAL_SOURCE_EXIT, false, result );
    3722
    3823  /***************************************************************
  • cpukit/sapi/src/interrtext.c

    r8a6de83 rb39e055  
    4848  "INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE",
    4949  "INTERNAL_ERROR_UNLIMITED_AND_MAXIMUM_IS_0",
    50   "INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP",
     50  "OBSOLETE_INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP",
    5151  "INTERNAL_ERROR_GXX_KEY_ADD_FAILED",
    5252  "INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED",
Note: See TracChangeset for help on using the changeset viewer.