summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/smp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-07-05 09:04:15 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-07-06 09:33:32 +0200
commit6f6cf78501d8d953983dfc68d5ec83f78856be92 (patch)
tree6c07a3e75331327c982df111548d7769fb5fbfa9 /cpukit/score/src/smp.c
parentscore: Do not disable ISR in _Terminate() (diff)
downloadrtems-6f6cf78501d8d953983dfc68d5ec83f78856be92.tar.bz2
score: Postpone SMP shutdown in _Terminate()
This enables fatal extensions to continue program execution after some fatal errors.
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r--cpukit/score/src/smp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index d6aad85e76..b8d9cb6e26 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -158,9 +158,12 @@ void _SMP_Start_multitasking_on_secondary_processor( void )
void _SMP_Request_shutdown( void )
{
- Per_CPU_Control *self_cpu = _Per_CPU_Get();
+ ISR_Level level;
+
+ _ISR_Local_disable( level );
+ (void) level;
- _Per_CPU_State_change( self_cpu, PER_CPU_STATE_SHUTDOWN );
+ _Per_CPU_State_change( _Per_CPU_Get(), PER_CPU_STATE_SHUTDOWN );
}
void _SMP_Send_message( uint32_t cpu_index, unsigned long message )