From bad55939df3c8a3c7ea58549c95e4a215b4bc0c3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 10 Aug 2010 13:15:30 +0000 Subject: 2010-08-10 Joel Sherrill PR 1661/testing * libcsupport/Makefile.am, libcsupport/include/rtems/libcsupport.h: Add public methods to get/set malloc heap pointer so the tests do not have to peer behind the API. * libcsupport/src/mallocgetheapptr.c, libcsupport/src/mallocsetheapptr.c: New files. --- cpukit/libcsupport/include/rtems/libcsupport.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpukit/libcsupport/include') diff --git a/cpukit/libcsupport/include/rtems/libcsupport.h b/cpukit/libcsupport/include/rtems/libcsupport.h index 63ddd4fa91..b231446b08 100644 --- a/cpukit/libcsupport/include/rtems/libcsupport.h +++ b/cpukit/libcsupport/include/rtems/libcsupport.h @@ -35,6 +35,8 @@ void RTEMS_Malloc_Initialize( extern void malloc_dump(void); extern void malloc_walk(size_t source, size_t printf_enabled); +void malloc_set_heap_pointer(Heap_Control *new_heap); +Heap_Control *malloc_get_heap_pointer( void ); extern void libc_init(void); extern int host_errno(void); extern void fix_syscall_errno(void); -- cgit v1.2.3