From 042072bfdfa6ff6a54c74cc54476c5175377bf63 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 14 Jun 2016 10:12:34 +0200 Subject: score: _Scheduler_priority_Ready_queue_initialize Use priority maximum of scheduler instance. This avoids a potential memory corruption on SMP configurations. --- cpukit/score/src/schedulerpriority.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit/score/src/schedulerpriority.c') diff --git a/cpukit/score/src/schedulerpriority.c b/cpukit/score/src/schedulerpriority.c index 6dc055a536..61505a4fce 100644 --- a/cpukit/score/src/schedulerpriority.c +++ b/cpukit/score/src/schedulerpriority.c @@ -27,5 +27,8 @@ void _Scheduler_priority_Initialize( const Scheduler_Control *scheduler ) _Scheduler_priority_Get_context( scheduler ); _Priority_bit_map_Initialize( &context->Bit_map ); - _Scheduler_priority_Ready_queue_initialize( &context->Ready[ 0 ] ); + _Scheduler_priority_Ready_queue_initialize( + &context->Ready[ 0 ], + scheduler->maximum_priority + ); } -- cgit v1.2.3