Changeset 333f942 in rtems


Ignore:
Timestamp:
07/10/14 10:49:43 (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
27783f6
Parents:
76ad756c
git-author:
Sebastian Huber <sebastian.huber@…> (07/10/14 10:49:43)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/10/14 13:29:57)
Message:

score: Fix assertions

Location:
cpukit/score
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/schedulerpriorityimpl.h

    r76ad756c r333f942  
    162162{
    163163  Priority_Control index = _Priority_bit_map_Get_highest( bit_map );
    164 
    165   return _Chain_First( &ready_queues[ index ] );
     164  Chain_Node *first = _Chain_First( &ready_queues[ index ] );
     165
     166  _Assert( first != _Chain_Tail( &ready_queues[ index ] ) );
     167
     168  return first;
    166169}
    167170
  • cpukit/score/include/rtems/score/schedulersmpimpl.h

    r76ad756c r333f942  
    679679    Scheduler_Node *highest_ready = ( *get_highest_ready )( context, node );
    680680
    681     _Assert( highest_ready != NULL );
    682 
    683681    /*
    684682     * The node has been extracted from the scheduled chain.  We have to place
     
    761759  while ( true ) {
    762760    Scheduler_Node *highest_ready = ( *get_highest_ready )( context, victim );
    763 
    764     _Assert( highest_ready != NULL );
    765761
    766762    if (
  • cpukit/score/src/schedulersimplesmp.c

    r76ad756c r333f942  
    8585  Scheduler_simple_SMP_Context *self =
    8686    _Scheduler_simple_SMP_Get_self( context );
     87  Scheduler_Node *first = (Scheduler_Node *) _Chain_First( &self->Ready );
    8788
    8889  (void) node;
    8990
    90   return (Scheduler_Node *) _Chain_First( &self->Ready );
     91  _Assert( &first->Node != _Chain_Tail( &self->Ready ) );
     92
     93  return first;
    9194}
    9295
Note: See TracChangeset for help on using the changeset viewer.