Files
rtems/cpukit/libcsupport/src
Joel Sherrill c3db01d0f3 2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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.
2007-05-09 18:27:26 +00:00
..
2004-04-15 13:26:21 +00:00
2004-04-18 06:05:35 +00:00
2004-04-15 13:26:21 +00:00
2006-06-22 22:27:24 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-15 13:26:21 +00:00
2004-04-18 06:05:35 +00:00
2007-02-06 14:44:34 +00:00
2004-04-15 13:26:21 +00:00
2004-04-15 13:26:21 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-15 13:26:21 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-18 06:05:35 +00:00
2004-04-15 13:26:21 +00:00
2004-04-18 06:05:35 +00:00
2004-04-15 13:26:21 +00:00
2004-04-18 06:05:35 +00:00
2004-04-15 13:26:21 +00:00
2004-04-18 06:05:35 +00:00

--
--  $Id$
--

Overview of newlib support (newlib is from CYGNUS)
    Each task can have its own libc state including:
        open stdio files
        strtok
        multi precision arithmetic state
        etc.

    This is implemented by a reentrancy data structure for each task.

    When a task is "started" (in RTEMS sense) the reentrancy structure
    is allocated.  Its address is stored in notepad[NOTEPAD_LAST].

    When task is switched to, the value of global variable _impure_ptr
    is changed to the value of the new tasks reentrancy structure.

    When a task is deleted
        atexit() processing (for that task) happens
        task's stdio buffers are flushed

    When exit(3) is called
        calling task's atexit processing done
        global libc state atexit processing done
            (this will include any atexit routines installed by drivers)
        executive is shutdown
            causes a context switch back to bsp land


NOTE:
    libc extension are installed by bsp_libc_init()
        iff we are using clock interrupts.
        This hack is necessary to allow the tmtests to avoid
        timing the extensions.