Changeset ccc92b8 in rtems


Ignore:
Timestamp:
11/21/16 09:26:32 (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
f730c25b
Parents:
27eccda
Message:

score: Group Per_CPU_Control members by alignment

Close #2820.

File:
1 edited

Legend:

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

    r27eccda rccc92b8  
    321321
    322322  /**
     323   * @brief This is set to true when this processor needs to run the thread
     324   * dispatcher.
     325   *
     326   * It is volatile since interrupts may alter this flag.
     327   *
     328   * This field is not protected by a lock and must be accessed only by this
     329   * processor.  Code (e.g. scheduler and post-switch action requests) running
     330   * on another processors must use an inter-processor interrupt to set the
     331   * thread dispatch necessary indicator to true.
     332   *
     333   * @see _Thread_Get_heir_and_make_it_executing().
     334   */
     335  volatile bool dispatch_necessary;
     336
     337  /**
    323338   * @brief This is the thread executing on this processor.
    324339   *
     
    347362   */
    348363  struct _Thread_Control *heir;
    349 
    350   /**
    351    * @brief This is set to true when this processor needs to run the thread
    352    * dispatcher.
    353    *
    354    * It is volatile since interrupts may alter this flag.
    355    *
    356    * This field is not protected by a lock and must be accessed only by this
    357    * processor.  Code (e.g. scheduler and post-switch action requests) running
    358    * on another processors must use an inter-processor interrupt to set the
    359    * thread dispatch necessary indicator to true.
    360    *
    361    * @see _Thread_Get_heir_and_make_it_executing().
    362    */
    363   volatile bool dispatch_necessary;
    364364
    365365#if defined(RTEMS_SMP)
     
    813813#define PER_CPU_THREAD_DISPATCH_DISABLE_LEVEL \
    814814  PER_CPU_ISR_DISPATCH_DISABLE + 4
     815#define PER_CPU_DISPATCH_NEEDED \
     816  PER_CPU_THREAD_DISPATCH_DISABLE_LEVEL + 4
    815817#define PER_CPU_OFFSET_EXECUTING \
    816   PER_CPU_THREAD_DISPATCH_DISABLE_LEVEL + 4
     818  PER_CPU_DISPATCH_NEEDED + 4
    817819#define PER_CPU_OFFSET_HEIR \
    818820  PER_CPU_OFFSET_EXECUTING + CPU_SIZEOF_POINTER
    819 #define PER_CPU_DISPATCH_NEEDED \
    820   PER_CPU_OFFSET_HEIR + CPU_SIZEOF_POINTER
    821821#if defined(RTEMS_SMP)
    822822#define PER_CPU_INTERRUPT_FRAME_AREA \
    823   PER_CPU_DISPATCH_NEEDED + 4
     823  PER_CPU_OFFSET_HEIR + CPU_SIZEOF_POINTER
    824824#endif
    825825
Note: See TracChangeset for help on using the changeset viewer.