36 #ifndef _RTEMS_MALLOCINITONE_H 37 #define _RTEMS_MALLOCINITONE_H 59 uintptr_t space_available;
73 if ( space_available > 0 ) {
static __inline__ size_t _Memory_Get_count(const Memory_Information *information)
Get the memory area count.
static __inline__ Memory_Area * _Memory_Get_area(const Memory_Information *information, size_t index)
Get a memory area by index.
Heap Handler Implementation.
static __inline__ uintptr_t _Memory_Get_free_size(const Memory_Area *area)
Get the size of the free memory area of the memory area.
Information for the Assert Handler.
The memory area description.
Control block used to manage a heap.
uintptr_t _Heap_Initialize(Heap_Control *heap, void *area_begin, uintptr_t area_size, uintptr_t page_size)
Initializes the heap control block.
Heap_Control * RTEMS_Malloc_Heap
C program heap control.
#define CPU_HEAP_ALIGNMENT
static __inline__ void * _Memory_Get_free_begin(const Memory_Area *area)
Get the begin of the free area of the memory area.
void _Internal_error(Internal_errors_Core_list core_error) RTEMS_NO_RETURN
Terminates the system with an INTERNAL_ERROR_CORE fatal source and the specified core error code...
static __inline__ void _Memory_Consume(Memory_Area *area, uintptr_t consume)
Consume the specified size from the free memory area of the memory area.
#define RTEMS_INLINE_ROUTINE
Gives a hint to the compiler in a function declaration to inline this function.
const Memory_Information * _Memory_Get(void)
Return the memory information of this platform.
#define _Assert(_e)
Assertion similar to assert() controlled via RTEMS_DEBUG instead of NDEBUG.