Changeset 842394f in rtems


Ignore:
Timestamp:
Sep 9, 2011, 11:25:23 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
1a6ab4e
Parents:
fd1661f2
Message:

2011-09-09 Sebastian Huber <sebastian.huber@…>

PR 1901/cpukit

  • score/src/threadhandler.c: Do not use internal tasks for global initialization in MP configuration.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rfd1661f2 r842394f  
     12011-09-09      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        PR 1901/cpukit
     4        * score/src/threadhandler.c: Do not use internal tasks for global
     5        initialization in MP configuration.
     6
    172011-09-09      Sebastian Huber <sebastian.huber@embedded-brains.de>
    28
  • cpukit/score/src/threadhandler.c

    rfd1661f2 r842394f  
    9090  Thread_Control *executing;
    9191  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
    92     static char doneConstructors;
    93     char doneCons;
     92    static bool doneConstructors;
     93    bool doCons;
    9494  #endif
    9595
     
    111111
    112112  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
    113     doneCons = doneConstructors;
    114     doneConstructors = 1;
     113    #if defined(RTEMS_MULTIPROCESSING)
     114      doCons = !doneConstructors
     115        && _Objects_Get_API( executing->Object.id ) != OBJECTS_INTERNAL_API;
     116      if (doCons)
     117        doneConstructors = true;
     118    #else
     119      doCons = !doneConstructors;
     120      doneConstructors = true;
     121    #endif
    115122  #endif
    116123
     
    144151     *  RTEMS target configuration.  --joel (12 May 2007)
    145152     */
    146     if (!doneCons) /* && (volatile void *)_init) */ {
     153    if (doCons) /* && (volatile void *)_init) */ {
    147154      INIT_NAME ();
    148155   
Note: See TracChangeset for help on using the changeset viewer.