mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-30 02:05:20 +08:00
* libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/malloc_walk.c, libcsupport/src/posix_memalign.c, libcsupport/src/realloc.c, score/src/heapwalk.c: Add rtems_memalign as helper and as exposed nmemalign variant with few restrictions. Also turn on compilation of _Heap_Walk but make forced calls to it conditionally compiled. This should allow more flexibility to the user as to run-time checking of the heap. * libcsupport/src/rtems_memalign.c: New file.
29 lines
545 B
C
29 lines
545 B
C
/*
|
|
* malloc_walk Implementation
|
|
*
|
|
* COPYRIGHT (c) 1989-2007.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#if HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#ifdef RTEMS_NEWLIB
|
|
#include "malloc_p.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
void malloc_walk(size_t source, size_t printf_enabled)
|
|
{
|
|
_Protected_heap_Walk( &RTEMS_Malloc_Heap, source, printf_enabled );
|
|
}
|
|
|
|
#endif
|