36 #ifndef _RTEMS_SCORE_WKSPACEINITONE_H 37 #define _RTEMS_SCORE_WKSPACEINITONE_H 44 #include <rtems/config.h> 59 uintptr_t wkspace_size;
60 uintptr_t wkspace_size_with_overhead;
61 uintptr_t available_size;
67 if ( wkspace_size < wkspace_size_with_overhead ) {
82 size = wkspace_size_with_overhead;
98 if ( wkspace_size > available_size ) {
Constants and Prototypes Related to the Internal Error Handler.
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.
RTEMS_INLINE_ROUTINE void _Heap_Protection_set_delayed_free_fraction(Heap_Control *heap, uintptr_t fraction)
Sets the fraction of delayed free blocks that is actually freed during memory shortage.
Information for the Assert Handler.
The memory area description.
Heap_Control _Workspace_Area
Executive workspace control.
#define rtems_configuration_get_unified_work_area()
Returns true, if the RTEMS Workspace and C Program Heap are unified, otherwise returns false...
uintptr_t _Heap_Initialize(Heap_Control *heap, void *area_begin, uintptr_t area_size, uintptr_t page_size)
Initializes the heap control block.
#define CPU_HEAP_ALIGNMENT
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Area_overhead(uintptr_t page_size)
Returns the worst case overhead to manage a memory area.
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 rtems_configuration_get_work_space_size()
Returns the RTEMS Workspace size in bytes configured for this application.
Information Related to the RAM Workspace.
#define _Assert(_e)
Assertion similar to assert() controlled via RTEMS_DEBUG instead of NDEBUG.