diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-18 19:51:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-22 16:35:06 +0100 |
commit | 1906a36a8635fe8f666bc60eab354274ffc8dcfa (patch) | |
tree | c1a54f1f201a7b92048ac9f5c2177332fd6ad0ae /cpukit/score/src/interr.c | |
parent | score: Delete nest level from internal error state (diff) | |
download | rtems-1906a36a8635fe8f666bc60eab354274ffc8dcfa.tar.bz2 |
score: Change _Internal_error_Occurred()
Call the fatal handlers of the user extensions before the update of
_Internal_errors_What_happened. This reduces the requirements on the
execution context further. Now a valid read-write data is only required
after the call to the fatal handlers.
Diffstat (limited to 'cpukit/score/src/interr.c')
-rw-r--r-- | cpukit/score/src/interr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/score/src/interr.c b/cpukit/score/src/interr.c index a9f1efc8b9..50b3ffdde6 100644 --- a/cpukit/score/src/interr.c +++ b/cpukit/score/src/interr.c @@ -50,13 +50,12 @@ void _Internal_error_Occurred( Internal_errors_t the_error ) { + _User_extensions_Fatal( the_source, is_internal, the_error ); _Internal_errors_What_happened.the_source = the_source; _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; - _User_extensions_Fatal( the_source, is_internal, the_error ); - _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); |