summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/interr.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-17 09:58:43 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-19 09:59:39 +0100
commit38ee75853f674977609bd078c69fb53420afdd08 (patch)
tree58ba999a4e775f0feafcbab796fcdf1c0bbe9b8c /cpukit/score/src/interr.c
parentscore: Delete _Thread_BSP_context (diff)
downloadrtems-38ee75853f674977609bd078c69fb53420afdd08.tar.bz2
score: Disable ISR in _Internal_error_Occurred()
Disable interrupts as the first step in _Internal_error_Occurred() to get a defined execution context for the fatal extensions. Make _ISR_Disable_without_giant() available for non-SMP configurations.
Diffstat (limited to 'cpukit/score/src/interr.c')
-rw-r--r--cpukit/score/src/interr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/score/src/interr.c b/cpukit/score/src/interr.c
index f3a3127aa7..9f52ce70cf 100644
--- a/cpukit/score/src/interr.c
+++ b/cpukit/score/src/interr.c
@@ -19,6 +19,7 @@
#endif
#include <rtems/score/interr.h>
+#include <rtems/score/isrlevel.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/userextimpl.h>
@@ -32,6 +33,11 @@ void _Internal_error_Occurred(
Internal_errors_t the_error
)
{
+ ISR_Level level;
+
+ _ISR_Disable_without_giant( level );
+ (void) level;
+
_User_extensions_Fatal( the_source, is_internal, the_error );
_Internal_errors_What_happened.the_source = the_source;