URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [rtems/] [c/] [src/] [lib/] [libc/] [README] - Rev 1765
Compare with Previous | Blame | View Log
---- $Id: README,v 1.2 2001-09-27 12:01:15 chris Exp $--Overview of newlib support (newlib is from CYGNUS)Each task can have its own libc state including:open stdio filesstrtokmulti precision arithmetic stateetc.This is implemented by a reentrancy data structure for each task.When a task is "started" (in RTEMS sense) the reentrancy structureis allocated. Its address is stored in notepad[NOTEPAD_LAST].When task is switched to, the value of global variable _impure_ptris changed to the value of the new tasks reentrancy structure.When a task is deletedatexit() processing (for that task) happenstask's stdio buffers are flushedWhen exit(3) is calledcalling task's atexit processing doneglobal libc state atexit processing done(this will include any atexit routines installed by drivers)executive is shutdowncauses a context switch back to bsp landNOTE:libc extension are installed by bsp_libc_init()iff we are using clock interrupts.This hack is necessary to allow the tmtests to avoidtiming the extensions.
