diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-14 09:27:43 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-15 15:33:11 +0100 |
commit | 7d0bdcac1ac20d6f22b24689c16e6aa7bc3c1e40 (patch) | |
tree | c99c2bff6446ed97821e45c5a434ab80d2fbc87b /cpukit/score/src | |
parent | score: Documentation (diff) | |
download | rtems-7d0bdcac1ac20d6f22b24689c16e6aa7bc3c1e40.tar.bz2 |
score: Add nest level to interal error state
Add Internal_errors_Information::nest_level. This helps to detect
recursive calls to _Internal_error_Occurred().
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/interr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/interr.c b/cpukit/score/src/interr.c index a9f1efc8b9..0192dfd71c 100644 --- a/cpukit/score/src/interr.c +++ b/cpukit/score/src/interr.c @@ -55,6 +55,8 @@ void _Internal_error_Occurred( _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; + ++_Internal_errors_What_happened.nest_level; + _User_extensions_Fatal( the_source, is_internal, the_error ); _System_state_Set( SYSTEM_STATE_FAILED ); |