Changeset 99970a7 in rtems


Ignore:
Timestamp:
Jun 28, 2013, 7:03:58 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
10b51ae
Parents:
40883773
git-author:
Sebastian Huber <sebastian.huber@…> (06/28/13 07:03:58)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/30/13 07:53:23)
Message:

score: Add assert to _Per_CPU_Get()

Thread dispatching must be repressed to use the per CPU control of the
current processor consistently.

File:
1 edited

Legend:

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

    r40883773 r99970a7  
    2323  #include <rtems/asm.h>
    2424#else
     25  #include <rtems/score/assert.h>
    2526  #include <rtems/score/isrlevel.h>
    2627  #include <rtems/score/timestamp.h>
     
    237238static inline Per_CPU_Control *_Per_CPU_Get( void )
    238239{
     240  _Assert_Thread_dispatching_repressed();
     241
    239242  return &_Per_CPU_Information[ _SMP_Get_current_processor() ];
    240243}
Note: See TracChangeset for help on using the changeset viewer.