Changeset 73c7cf1 in rtems


Ignore:
Timestamp:
Mar 20, 2008, 7:10:03 PM (12 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
49bce16b
Parents:
d56c678
Message:

2008-03-19 Till Straumann <strauman@…>

  • shared/startup/pretaskinghook.c: install pointer to rtems_malloc_sbrk_helpers_table. This (and derived) BSPs rely on sbrk delivering even the first/initial chunk of memory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/shared/startup/pretaskinghook.c

    rd56c678 r73c7cf1  
    2626#include <rtems/bspIo.h>
    2727#endif
     28
     29#include <rtems/malloc.h>
    2830
    2931void bsp_libc_init( void *, uint32_t, int );
     
    6163#endif   
    6264
     65  /* Must install sbrk helpers since we rely on sbrk for giving
     66   * us even the first chunk of memory (bsp_libc_init(heap start==NULL))
     67   */
     68
     69  rtems_malloc_sbrk_helpers = &rtems_malloc_sbrk_helpers_table;
     70
    6371  bsp_libc_init((void *) 0, heap_size, heap_sbrk_spared);
    6472
Note: See TracChangeset for help on using the changeset viewer.