diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-08 22:59:14 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-08 22:59:14 +0000 |
commit | cfcc4e202d928690c46a083ce594aa0d505bf302 (patch) | |
tree | ae22c4fd873aacb37662b661760f4d4ce021acc6 /cpukit/libcsupport/src/malloc_statistics_helpers.c | |
parent | 2008-01-08 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-cfcc4e202d928690c46a083ce594aa0d505bf302.tar.bz2 |
2008-01-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am: Add malloc_sbrk_helpers.c.
* libcsupport/include/rtems/malloc.h,
libcsupport/src/malloc.c, libcsupport/src/malloc_initialize.c,
libcsupport/src/malloc_p.h,
libcsupport/src/malloc_statistics_helpers.c: Make sbrk()
support pluggable and optional. This eliminates the need for
heap extend and sbrk in the minimum footprint which is ~2.5K on
the SPARC.
* sapi/include/confdefs.h: Add the following configuration points:
+ CONFIGURE_MALLOC_STATISTICS
+ CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
* libcsupport/src/malloc_sbrk_helpers.c: New file.
Diffstat (limited to 'cpukit/libcsupport/src/malloc_statistics_helpers.c')
-rw-r--r-- | cpukit/libcsupport/src/malloc_statistics_helpers.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/libcsupport/src/malloc_statistics_helpers.c b/cpukit/libcsupport/src/malloc_statistics_helpers.c index 9e744a4c40..53d9bec99d 100644 --- a/cpukit/libcsupport/src/malloc_statistics_helpers.c +++ b/cpukit/libcsupport/src/malloc_statistics_helpers.c @@ -66,14 +66,11 @@ void rtems_malloc_statistics_at_free( } } -rtems_malloc_statististics_functions_t rtems_malloc_statistics_helpers_table = { +rtems_malloc_statistics_functions_t rtems_malloc_statistics_helpers_table = { rtems_malloc_statistics_initialize, rtems_malloc_statistics_at_malloc, rtems_malloc_statistics_at_free, }; -rtems_malloc_statististics_functions_t *rtems_malloc_statistics_helpers = - &rtems_malloc_statistics_helpers_table; - #endif |