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/include | |
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/include')
-rw-r--r-- | cpukit/sapi/include/rtems/fatal.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/cpukit/sapi/include/rtems/fatal.h b/cpukit/sapi/include/rtems/fatal.h index b4b3b0fe6e..03cfafa8d0 100644 --- a/cpukit/sapi/include/rtems/fatal.h +++ b/cpukit/sapi/include/rtems/fatal.h @@ -73,17 +73,20 @@ void rtems_fatal_error_occurred( ) RTEMS_NO_RETURN; /** - * @brief Invokes the internal error handler with is internal set to false. + * @brief Terminates the system. * - * @param[in] source is the fatal source. - * @param[in] error is the fatal code. + * @param[in] fatal_source The fatal source. + * @param[in] error_code The error code. * * @see _Terminate(). */ -void rtems_fatal( - rtems_fatal_source source, - rtems_fatal_code error -) RTEMS_NO_RETURN; +RTEMS_INLINE_ROUTINE void rtems_fatal( + rtems_fatal_source fatal_source, + rtems_fatal_code error_code +) +{ + _Terminate( fatal_source, error_code ); +} /** * @brief Returns a text for a fatal source. |