From 6c36946fea7bace4006168fc02e35aacd1d2e4a2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 7 May 2014 14:22:56 +0200 Subject: score: Fix SMP startup --- cpukit/score/src/smp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index 2f86c6e175..af0eb183e1 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -111,7 +111,9 @@ void _SMP_Request_start_multitasking( void ) for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) { Per_CPU_Control *cpu = _Per_CPU_Get_by_index( cpu_index ); - _Per_CPU_State_change( cpu, PER_CPU_STATE_REQUEST_START_MULTITASKING ); + if ( _Per_CPU_Is_processor_started( cpu ) ) { + _Per_CPU_State_change( cpu, PER_CPU_STATE_REQUEST_START_MULTITASKING ); + } } } -- cgit v1.2.3