Files
rtems/cpukit/libcsupport/src
Joel Sherrill 7d647c09e9 2011-07-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/malloc_initialize.c: After discussion with Till
	Straumann, revert the change from r1.12 to r1.13. This broke BSPs
	with sbrk() support once the libbsp sbrk() framework was enhanced.
	psim runs now.
2011-07-01 18:23:09 +00:00
..
2009-11-29 13:35:32 +00:00
2009-09-30 06:15:39 +00:00
2009-09-30 05:15:00 +00:00
2009-09-30 05:15:00 +00:00
2009-09-30 06:15:39 +00:00
2009-09-30 08:20:32 +00:00
2010-08-27 18:07:03 +00:00
2008-12-05 06:44:40 +00:00
2010-08-03 15:56:25 +00:00
2010-08-03 15:56:25 +00:00
2009-09-30 04:46:31 +00:00
2010-08-03 15:56:25 +00:00
2010-08-03 15:56:25 +00:00
2010-08-03 15:56:25 +00:00
2010-04-02 07:05:32 +00:00
2008-12-05 06:44:40 +00:00
2008-09-01 11:42:19 +00:00
2009-11-29 13:35:32 +00:00
2009-09-30 04:39:46 +00:00
2010-04-02 07:05:32 +00:00
2009-11-29 13:35:32 +00:00
2009-11-29 13:35:32 +00:00
2009-11-29 13:35:32 +00:00
2008-12-05 06:44:40 +00:00
2010-08-03 15:56:25 +00:00
2010-08-03 15:56:25 +00:00
2009-09-30 04:46:31 +00:00
2010-08-03 15:56:25 +00:00
2010-08-03 15:56:25 +00:00
2008-12-10 23:05:50 +00:00
2009-12-01 10:12:55 +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.