diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/src/malloc_p.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/malloc_p.h b/cpukit/libcsupport/src/malloc_p.h new file mode 100644 index 0000000000..95f73d72b1 --- /dev/null +++ b/cpukit/libcsupport/src/malloc_p.h @@ -0,0 +1,55 @@ +/* + * RTEMS Malloc Family Internal Header + * + * 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$ + */ + +#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ +#include <rtems.h> +#include <rtems/libcsupport.h> +#include <rtems/score/protectedheap.h> +#include <rtems/malloc.h> + +#ifdef RTEMS_NEWLIB +#include <sys/reent.h> +#endif + +#include <stdint.h> +#include <inttypes.h> +#include <rtems/chain.h> + +#ifndef HAVE_UINTMAX_T + /* Fall back to unsigned long if uintmax_t is not available */ + #define unsigned long uintmax_t + + #ifndef PRIuMAX + #define PRIuMAX "lu" + #endif +#endif + +/* + * Basic management data + */ +extern Heap_Control RTEMS_Malloc_Heap; +extern Chain_Control RTEMS_Malloc_GC_list; +extern size_t RTEMS_Malloc_Sbrk_amount; + +/* + * Malloc Statistics Structure + */ +extern rtems_malloc_statistics_t rtems_malloc_statistics; + +#define MSBUMP(_f,_n) rtems_malloc_statistics._f += (_n) + +/* + * Dirty memory plugin + */ +#define MALLOC_DIRTY + |