diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-09 07:19:22 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-12 08:03:29 +0100 |
commit | 3a659b04818c61d9fa99edcfdff4786adb71cd3f (patch) | |
tree | 9fc034fe0df2d81e80f8d8cbd651bd139321255f /cpukit/score/src/mpci.c | |
parent | Add INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED (diff) | |
download | rtems-3a659b04818c61d9fa99edcfdff4786adb71cd3f.tar.bz2 |
score: Introduce _Internal_error()
Diffstat (limited to 'cpukit/score/src/mpci.c')
-rw-r--r-- | cpukit/score/src/mpci.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c index e495eb455d..89651b93b6 100644 --- a/cpukit/score/src/mpci.c +++ b/cpukit/score/src/mpci.c @@ -95,7 +95,7 @@ static void _MPCI_Handler_initialization( void ) users_mpci_table = _Configuration_MP_table->User_mpci_table; if ( _System_state_Is_multiprocessing && !users_mpci_table ) - _Terminate( INTERNAL_ERROR_CORE, INTERNAL_ERROR_NO_MPCI ); + _Internal_error( INTERNAL_ERROR_NO_MPCI ); _MPCI_table = users_mpci_table; @@ -187,7 +187,7 @@ MP_packet_Prefix *_MPCI_Get_packet ( void ) (*_MPCI_table->get_packet)( &the_packet ); if ( the_packet == NULL ) - _Terminate( INTERNAL_ERROR_CORE, INTERNAL_ERROR_OUT_OF_PACKETS ); + _Internal_error( INTERNAL_ERROR_OUT_OF_PACKETS ); /* * Put in a default timeout that will be used for @@ -367,7 +367,7 @@ void _MPCI_Receive_server( the_function = _MPCI_Packet_processors[ the_packet->the_class ]; if ( !the_function ) - _Terminate( INTERNAL_ERROR_CORE, INTERNAL_ERROR_BAD_PACKET ); + _Internal_error( INTERNAL_ERROR_BAD_PACKET ); (*the_function)( the_packet ); } @@ -449,10 +449,7 @@ void _MPCI_Internal_packets_Process_packet ( _MPCI_Return_packet( the_packet_prefix ); - _Terminate( - INTERNAL_ERROR_CORE, - INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION - ); + _Internal_error( INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION ); } _MPCI_Return_packet( the_packet_prefix ); |