Ignore:
Timestamp:
Sep 17, 2008, 6:37:55 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
1986152
Parents:
2f3e2e0
Message:

2008-09-17 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/free.c, libcsupport/src/malloc.c, libcsupport/src/malloc_initialize.c, libcsupport/src/malloc_p.h, libcsupport/src/malloc_sbrk_helpers.c, libcsupport/src/malloc_statistics_helpers.c, libcsupport/src/malloc_walk.c, libcsupport/src/mallocfreespace.c, libcsupport/src/mallocinfo.c, libcsupport/src/realloc.c, libcsupport/src/rtems_memalign.c, sapi/include/confdefs.h, score/inline/rtems/score/thread.inl: Add support for optionally having a unified work area. In other words, the RTEMS Workspace and C Program Heap are the same pool of memory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/malloc_sbrk_helpers.c

    r2f3e2e0 rbd5984de  
    9090
    9191  if ( !_Protected_heap_Extend(
    92           &RTEMS_Malloc_Heap, starting_address, the_size) ) {
     92          RTEMS_Malloc_Heap, starting_address, the_size) ) {
    9393    sbrk(-the_size);
    9494    errno = ENOMEM;
     
    9898  MSBUMP(space_available, the_size);
    9999
    100   return_this = _Protected_heap_Allocate( &RTEMS_Malloc_Heap, size );
     100  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
    101101  return return_this;
    102102}
Note: See TracChangeset for help on using the changeset viewer.