From 16b14cfdf8d2e5b6087e8bc955e94d61d871630d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 4 Nov 2016 15:37:16 +0100 Subject: score: Fix _MRSP_Initialize() The ceiling priorities must be initialized by scheduler index. Do not confuse it with a processor index. --- cpukit/score/include/rtems/score/mrspimpl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpukit/score/include/rtems/score/mrspimpl.h') diff --git a/cpukit/score/include/rtems/score/mrspimpl.h b/cpukit/score/include/rtems/score/mrspimpl.h index 96d88ad788..6b00af4fd0 100644 --- a/cpukit/score/include/rtems/score/mrspimpl.h +++ b/cpukit/score/include/rtems/score/mrspimpl.h @@ -209,13 +209,13 @@ RTEMS_INLINE_ROUTINE Status_Control _MRSP_Initialize( } for ( i = 0 ; i < scheduler_count ; ++i ) { - const Scheduler_Control *scheduler_of_cpu; + const Scheduler_Control *scheduler_of_index; - scheduler_of_cpu = _Scheduler_Get_by_CPU_index( i ); + scheduler_of_index = &_Scheduler_Table[ i ]; - if ( scheduler != scheduler_of_cpu ) { + if ( scheduler != scheduler_of_index ) { mrsp->ceiling_priorities[ i ] = - _Scheduler_Map_priority( scheduler_of_cpu, 0 ); + _Scheduler_Map_priority( scheduler_of_index, 0 ); } else { mrsp->ceiling_priorities[ i ] = ceiling_priority; } -- cgit v1.2.3