Ignore:
Timestamp:
09/27/01 13:33:52 (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a8b2523
Parents:
1ef8e3d4
Message:

2001-09-27 Eric Norum <eric.norum@…>

  • src/threadhandler.c: Now process C++ global constructors (_init) as part of the first task execution not in BSP space. This depends on the toolset defining USE_INIT_FINI so you have to have the right toolset version.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threadhandler.c

    r1ef8e3d4 r5b87515d  
    5959  ISR_Level  level;
    6060  Thread_Control *executing;
     61#ifdef USE_INIT_FINI
     62  static char doneConstructors;
     63  char doneCons;
     64#endif
    6165 
    6266  executing = _Thread_Executing;
     
    6973  level = executing->Start.isr_level;
    7074  _ISR_Set_level(level);
     75
     76#ifdef USE_INIT_FINI
     77  doneCons = doneConstructors;
     78  doneConstructors = 1;
     79#endif
    7180
    7281  /*
     
    8392
    8493  _Thread_Enable_dispatch();
     94#ifdef USE_INIT_FINI
     95  if (!doneCons)
     96    _init ();
     97#endif
    8598 
    8699  switch ( executing->Start.prototype ) {
Note: See TracChangeset for help on using the changeset viewer.