summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulersimplesmp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-07-10 12:49:43 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-07-10 15:29:57 +0200
commit333f9426f6d4239e33f39da0b2217c58f6fa9046 (patch)
tree64a6b1302bce7449c2345ab5389a23622982c6e8 /cpukit/score/src/schedulersimplesmp.c
parentFreeBSD standard shell does not support substring expansion. (diff)
downloadrtems-333f9426f6d4239e33f39da0b2217c58f6fa9046.tar.bz2
score: Fix assertions
Diffstat (limited to 'cpukit/score/src/schedulersimplesmp.c')
-rw-r--r--cpukit/score/src/schedulersimplesmp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/src/schedulersimplesmp.c b/cpukit/score/src/schedulersimplesmp.c
index 084d78251f..733f3dbe9f 100644
--- a/cpukit/score/src/schedulersimplesmp.c
+++ b/cpukit/score/src/schedulersimplesmp.c
@@ -84,10 +84,13 @@ static Scheduler_Node *_Scheduler_simple_SMP_Get_highest_ready(
{
Scheduler_simple_SMP_Context *self =
_Scheduler_simple_SMP_Get_self( context );
+ Scheduler_Node *first = (Scheduler_Node *) _Chain_First( &self->Ready );
(void) node;
- return (Scheduler_Node *) _Chain_First( &self->Ready );
+ _Assert( &first->Node != _Chain_Tail( &self->Ready ) );
+
+ return first;
}
static void _Scheduler_simple_SMP_Move_from_scheduled_to_ready(