diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-14 10:12:34 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-14 11:57:47 +0200 |
commit | 042072bfdfa6ff6a54c74cc54476c5175377bf63 (patch) | |
tree | c96a1439100a410ff55b3230529b2954d8928f89 /cpukit/score/src/schedulerprioritysmp.c | |
parent | score: _Thread_Create_idle_for_CPU() (diff) | |
download | rtems-042072bfdfa6ff6a54c74cc54476c5175377bf63.tar.bz2 |
score: _Scheduler_priority_Ready_queue_initialize
Use priority maximum of scheduler instance. This avoids a potential
memory corruption on SMP configurations.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/schedulerprioritysmp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/src/schedulerprioritysmp.c b/cpukit/score/src/schedulerprioritysmp.c index c08799f270..bd042d2534 100644 --- a/cpukit/score/src/schedulerprioritysmp.c +++ b/cpukit/score/src/schedulerprioritysmp.c @@ -39,7 +39,10 @@ void _Scheduler_priority_SMP_Initialize( const Scheduler_Control *scheduler ) _Scheduler_SMP_Initialize( &self->Base ); _Priority_bit_map_Initialize( &self->Bit_map ); - _Scheduler_priority_Ready_queue_initialize( &self->Ready[ 0 ] ); + _Scheduler_priority_Ready_queue_initialize( + &self->Ready[ 0 ], + scheduler->maximum_priority + ); } void _Scheduler_priority_SMP_Node_initialize( |