Changeset c3db01d0 in rtems for cpukit/sapi/src/exinit.c


Ignore:
Timestamp:
May 9, 2007, 6:27:26 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ded1977
Parents:
d81d057
Message:

2007-05-09 Joel Sherrill <joel.sherrill@…>

  • libcsupport/include/rtems/libcsupport.h, libcsupport/src/newlibc.c, sapi/Makefile.am, sapi/include/confdefs.h, sapi/src/exinit.c, score/Makefile.am, score/preinstall.am, score/include/rtems/score/userext.h, score/src/chain.c, score/src/userext.c: Switch to newlib reentrancy extension being installed in the initial set instead of using rtems_extension_create. While implementing this, noticed that user extensions and chain code had multiple functions in a single file which is not desirable in the SuperCore? and API portions of RTEMS, so split these into multiple files with one function per file. Also noticed that some of user extension code was inlined for no particular reason so moved that to C bodies. Split executive shutdown from initialization since not every application shuts down. Moved fini call to executive shutdown to be more symmetrical with where it is called at startup.
  • sapi/src/exshutdown.c, score/src/chainappend.c, score/src/chainextract.c, score/src/chainget.c, score/src/chaininsert.c, score/src/userextaddapiset.c, score/src/userextaddset.c, score/src/userextremoveset.c, score/src/userextthreadbegin.c, score/src/userextthreadcreate.c, score/src/userextthreaddelete.c, score/src/userextthreadrestart.c, score/src/userextthreadstart.c, score/src/userextthreadswitch.c: New files.
  • score/inline/rtems/score/userext.inl: Removed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/src/exinit.c

    rd81d057 rc3db01d0  
    106106
    107107  _Configuration_Table    = configuration_table;
     108#if defined(RTEMS_MULTIPROCESSING)
    108109  _Configuration_MP_table = multiprocessing_table;
     110#endif
    109111
    110112  /*
     
    278280  _ISR_Enable( bsp_level );
    279281}
    280 
    281 /*PAGE
    282  *
    283  *  rtems_shutdown_executive
    284  *
    285  *  This kernel routine shutdowns the executive.  It halts multitasking
    286  *  and returns control to the application execution "thread" which
    287  *  initialially invoked the rtems_initialize_executive directive.
    288  *
    289  *  Input parameters:   NONE
    290  *
    291  *  Output parameters:  NONE
    292  */
    293 
    294 void rtems_shutdown_executive(
    295    uint32_t   result
    296 )
    297 {
    298   if ( _System_state_Current != SYSTEM_STATE_SHUTDOWN ) {
    299     _System_state_Set( SYSTEM_STATE_SHUTDOWN );
    300     _Thread_Stop_multitasking();
    301   }
    302 }
Note: See TracChangeset for help on using the changeset viewer.