diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-08 16:41:30 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-09 08:47:51 +0100 |
commit | b6606e8d9911d1487dbf8338447e7560d09ff48c (patch) | |
tree | 0d6ed5ed5e6dcd9284e8ec3e6a6d4c68764aea36 /cpukit/sapi/src | |
parent | cdtest: Print proper begin/end of test messages (diff) | |
download | rtems-b6606e8d9911d1487dbf8338447e7560d09ff48c.tar.bz2 |
score: Remove fatal is internal indicator
The fatal is internal indicator is redundant since the fatal source and
error code uniquely identify a fatal error. Keep the fatal user
extension is internal parameter for backward compatibility and set it to
false always.
Update #2825.
Diffstat (limited to 'cpukit/sapi/src')
-rw-r--r-- | cpukit/sapi/src/exshutdown.c | 2 | ||||
-rw-r--r-- | cpukit/sapi/src/fatal.c | 2 | ||||
-rw-r--r-- | cpukit/sapi/src/fatal2.c | 35 | ||||
-rw-r--r-- | cpukit/sapi/src/posixapi.c | 2 |
4 files changed, 3 insertions, 38 deletions
diff --git a/cpukit/sapi/src/exshutdown.c b/cpukit/sapi/src/exshutdown.c index 9306eaf897..4f700916ec 100644 --- a/cpukit/sapi/src/exshutdown.c +++ b/cpukit/sapi/src/exshutdown.c @@ -18,7 +18,7 @@ void rtems_shutdown_executive( uint32_t result ) { - _Terminate( RTEMS_FATAL_SOURCE_EXIT, false, result ); + _Terminate( RTEMS_FATAL_SOURCE_EXIT, result ); /*************************************************************** *************************************************************** diff --git a/cpukit/sapi/src/fatal.c b/cpukit/sapi/src/fatal.c index 684e878b60..4a0314a548 100644 --- a/cpukit/sapi/src/fatal.c +++ b/cpukit/sapi/src/fatal.c @@ -30,7 +30,7 @@ void rtems_fatal_error_occurred( uint32_t the_error ) { - _Terminate( INTERNAL_ERROR_RTEMS_API, FALSE, the_error ); + _Terminate( INTERNAL_ERROR_RTEMS_API, the_error ); /* will not return from this routine */ } diff --git a/cpukit/sapi/src/fatal2.c b/cpukit/sapi/src/fatal2.c deleted file mode 100644 index faa9cdb774..0000000000 --- a/cpukit/sapi/src/fatal2.c +++ /dev/null @@ -1,35 +0,0 @@ -/** - * @file - * - * @brief Invokes the internal error handler with is internal set to false. - * - * @ingroup ClassicFatal - */ - -/* - * Copyright (c) 2012 embedded brains GmbH. All rights reserved. - * - * embedded brains GmbH - * Obere Lagerstr. 30 - * 82178 Puchheim - * Germany - * <rtems@embedded-brains.de> - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#if HAVE_CONFIG_H - #include "config.h" -#endif - -#include <rtems/fatal.h> - -void rtems_fatal( - rtems_fatal_source source, - rtems_fatal_code error -) -{ - _Terminate( source, false, error ); -} diff --git a/cpukit/sapi/src/posixapi.c b/cpukit/sapi/src/posixapi.c index d1de103f18..e7d34fdf60 100644 --- a/cpukit/sapi/src/posixapi.c +++ b/cpukit/sapi/src/posixapi.c @@ -25,5 +25,5 @@ void _POSIX_Fatal_error( POSIX_Fatal_domain domain, int eno ) { uint32_t code = ( domain << 8 ) | ( ( uint32_t ) eno & 0xffU ); - _Terminate( INTERNAL_ERROR_POSIX_API, false, code ); + _Terminate( INTERNAL_ERROR_POSIX_API, code ); } |