OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libcsupport/] [src/] [README] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
--
2
--  README,v 1.3 1995/12/19 20:12:30 joel Exp
3
--
4
 
5
Overview of newlib support (newlib is from CYGNUS)
6
    Each task can have its own libc state including:
7
        open stdio files
8
        strtok
9
        multi precision arithmetic state
10
        etc.
11
 
12
    This is implemented by a reentrancy data structure for each task.
13
 
14
    When a task is "started" (in RTEMS sense) the reentrancy structure
15
    is allocated.  Its address is stored in notepad[NOTEPAD_LAST].
16
 
17
    When task is switched to, the value of global variable _impure_ptr
18
    is changed to the value of the new tasks reentrancy structure.
19
 
20
    When a task is deleted
21
        atexit() processing (for that task) happens
22
        task's stdio buffers are flushed
23
 
24
    When exit(3) is called
25
        calling task's atexit processing done
26
        global libc state atexit processing done
27
            (this will include any atexit routines installed by drivers)
28
        executive is shutdown
29
            causes a context switch back to bsp land
30
 
31
 
32
NOTE:
33
    libc extension are installed by bsp_libc_init()
34
        iff we are using clock interrupts.
35
        This hack is necessary to allow the tmtests to avoid
36
        timing the extensions.
37
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.