summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-08 22:59:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-08 22:59:14 +0000
commitcfcc4e202d928690c46a083ce594aa0d505bf302 (patch)
treeae22c4fd873aacb37662b661760f4d4ce021acc6 /cpukit/sapi
parent2008-01-08 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-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/sapi')
-rw-r--r--cpukit/sapi/include/confdefs.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 83a9dd35eb..a51c6b95ff 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -243,6 +243,30 @@ extern int rtems_telnetd_maximum_ptys;
#endif
/*
+ * RTEMS Malloc configuration
+ */
+
+#include <rtems/malloc.h>
+
+#ifdef CONFIGURE_INIT
+ rtems_malloc_statistics_functions_t *rtems_malloc_statistics_helpers =
+ #ifndef CONFIGURE_MALLOC_STATISTICS
+ NULL;
+ #else
+ &rtems_malloc_statistics_helpers_table;
+ #endif
+#endif
+
+#ifdef CONFIGURE_INIT
+ rtems_malloc_sbrk_functions_t *rtems_malloc_sbrk_helpers =
+ #ifndef CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
+ NULL;
+ #else
+ &rtems_malloc_sbrk_helpers_table;
+ #endif
+#endif
+
+/*
* Default User Initialization Task Table. This table guarantees that
* one user initialization table is defined.
*/