summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/interr.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-27 10:09:05 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-28 08:39:54 +0200
commitbf338f04c0e09be0c020868e28dde3fdd72d1ee2 (patch)
tree10d664d9bf5efd2a3b92c978b0581f340fa812de /cpukit/score/src/interr.c
parentbsps/irq: bsp_interrupt_facility_initialize() (diff)
downloadrtems-bf338f04c0e09be0c020868e28dde3fdd72d1ee2.tar.bz2
score: Remove _Internal_errors_What_happened
Users have access to the fatal error source and code though the fatal error extension. The user-specific fatal error handling should be done in statically initialized fatal error handlers. The _Internal_errors_What_happened was updated after the fatal error extension. In addition, there was no API to get the information stored in _Internal_errors_What_happened. In SMP configurations, this object could contain a mix of different fatal errors. Remove this object to save some bytes of storage.
Diffstat (limited to 'cpukit/score/src/interr.c')
-rw-r--r--cpukit/score/src/interr.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/cpukit/score/src/interr.c b/cpukit/score/src/interr.c
index 3f5ec2c473..fd5a4c92b8 100644
--- a/cpukit/score/src/interr.c
+++ b/cpukit/score/src/interr.c
@@ -4,8 +4,7 @@
* @ingroup RTEMSScoreIntErr
*
* @brief This source file contains the definition of ::_System_state_Current
- * and ::_Internal_errors_What_happened and implementation of _Terminate() and
- * _Internal_error().
+ * and the implementation of _Terminate() and _Internal_error().
*/
/*
@@ -28,22 +27,14 @@
System_state_Codes _System_state_Current;
-Internal_errors_Information _Internal_errors_What_happened;
-
void _Terminate(
Internal_errors_Source the_source,
Internal_errors_t the_error
)
{
_User_extensions_Fatal( the_source, the_error );
-
- _Internal_errors_What_happened.the_source = the_source;
- _Internal_errors_What_happened.the_error = the_error;
-
_System_state_Set( SYSTEM_STATE_TERMINATED );
-
_SMP_Request_shutdown();
-
_CPU_Fatal_halt( the_source, the_error );
/* will not return from this routine */