Changeset fc766ef5 in rtems


Ignore:
Timestamp:
Aug 18, 1999, 8:04:43 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
4efe75eb
Parents:
f2180e0
Message:

Added section on malloc reentrancy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/FAQ/debug.t

    rf2180e0 rfc766ef5  
    1010
    1111The questions in this category are hints that can ease debugging.
     12
     13@section Malloc
     14
     15@subsection Is malloc reentrant?
     16
     17Yes.  The RTEMS Malloc implementation is reentrant.  It is
     18implemented as calls to the Region Manager in the Classic API.
     19
     20@subsection When is malloc initialized?
     21
     22During BSP initialization, the @code{bsp_libc_init} routine
     23is called.  This routine initializes the heap as well as
     24the RTEMS system call layer (open, read, write, etc.) and
     25the RTEMS reentrancy support for the Cygnus newlib Standard C 
     26Library.
     27
     28The @code{bsp_libc_init} routine is passed the size and starting
     29address of the memory area to be used for the program heap as well
     30as the amount of memory to ask @code{sbrk} for when the heap is
     31exhausted.  For most BSPs, all memory available is placed in the
     32program heap thus it can not be extended dynamically by calls to
     33@code{sbrk}.
    1234
    1335@section How do I determine how much memory is left?
Note: See TracChangeset for help on using the changeset viewer.