Changeset 5b87515 in rtems


Ignore:
Timestamp:
Sep 27, 2001, 1:33:52 PM (20 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.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/ChangeLog

    r1ef8e3d4 r5b87515  
     1
     22001-09-27      Eric Norum <eric.norum@usask.ca>
     3
     4        * src/threadhandler.c: Now process C++ global constructors
     5        (_init) as part of the first task execution not in BSP space.
     6        This depends on the toolset defining USE_INIT_FINI so you
     7        have to have the right toolset version.
     8
     92001-09-23      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     10
     11        * include/rtems/score/Makefile.am: Use 'PREINSTALL_FILES ='.
     12        * include/rtems/Makefile.am: Use 'PREINSTALL_FILES ='.
     13        * inline/rtems/score/Makefile.am: Use 'PREINSTALL_FILES ='.
     14        * macros/rtems/score/Makefile.am: Use 'PREINSTALL_FILES ='.
    115
    2162001-08-30      Joel Sherrill <joel@OARcorp.com>
  • c/src/exec/score/src/threadhandler.c

    r1ef8e3d4 r5b87515  
    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 ) {
  • cpukit/score/ChangeLog

    r1ef8e3d4 r5b87515  
     1
     22001-09-27      Eric Norum <eric.norum@usask.ca>
     3
     4        * src/threadhandler.c: Now process C++ global constructors
     5        (_init) as part of the first task execution not in BSP space.
     6        This depends on the toolset defining USE_INIT_FINI so you
     7        have to have the right toolset version.
     8
     92001-09-23      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     10
     11        * include/rtems/score/Makefile.am: Use 'PREINSTALL_FILES ='.
     12        * include/rtems/Makefile.am: Use 'PREINSTALL_FILES ='.
     13        * inline/rtems/score/Makefile.am: Use 'PREINSTALL_FILES ='.
     14        * macros/rtems/score/Makefile.am: Use 'PREINSTALL_FILES ='.
    115
    2162001-08-30      Joel Sherrill <joel@OARcorp.com>
  • cpukit/score/src/threadhandler.c

    r1ef8e3d4 r5b87515  
    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.