37#ifndef _RTEMS_MALLOCINITONE_H
38#define _RTEMS_MALLOCINITONE_H
57static inline Heap_Control *_Malloc_Initialize_for_one_area(
63 uintptr_t space_available;
66 _Assert( _Memory_Get_count( mem ) == 1 );
68 RTEMS_Malloc_Heap = heap;
69 area = _Memory_Get_area( mem, 0 );
72 _Memory_Get_free_begin( area ),
73 _Memory_Get_free_size( area ),
77 if ( space_available > 0 ) {
78 _Memory_Consume( area, _Memory_Get_free_size( area ) );
This header file provides the interfaces of the Assert Handler.
#define _Assert(_e)
Assertion similar to assert() controlled via RTEMS_DEBUG instead of NDEBUG and static analysis runs.
Definition: assert.h:96
uintptr_t _Heap_Initialize(Heap_Control *heap, void *area_begin, uintptr_t area_size, uintptr_t page_size)
Initializes the heap control block.
Definition: heap.c:227
RTEMS_NO_RETURN void _Internal_error(Internal_errors_Core_list core_error)
Terminates the system with an INTERNAL_ERROR_CORE fatal source and the specified core error code.
Definition: interr.c:79
const Memory_Information * _Memory_Get(void)
Return the memory information of this platform.
Definition: bspgetworkarea.c:227
This header file provides interfaces of the Barrier Handler which are only used by the implementation...
This header file defines interfaces to support and use dynamic memory allocation.
Control block used to manage a heap.
Definition: heap.h:339
The memory area description.
Definition: memory.h:63