diff options
Diffstat (limited to 'cpukit/include/rtems/score/wkspacedata.h')
-rw-r--r-- | cpukit/include/rtems/score/wkspacedata.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/wkspacedata.h b/cpukit/include/rtems/score/wkspacedata.h index 613a320dfe..fd6fd1c1cb 100644 --- a/cpukit/include/rtems/score/wkspacedata.h +++ b/cpukit/include/rtems/score/wkspacedata.h @@ -43,6 +43,8 @@ extern "C" { #endif +struct Heap_Control; + /** * @addtogroup RTEMSScoreWorkspace * @@ -65,6 +67,30 @@ extern const uintptr_t _Workspace_Size; */ extern const bool _Workspace_Is_unified; +/** + * @brief Initializes the C Program Heap separated from the RTEMS Workspace. + * + * @return Returns the heap control used for the C Program Heap. + */ +struct Heap_Control *_Workspace_Malloc_initialize_separate( void ); + +/** + * @brief Initializes the C Program Heap so that it is unified with the RTEMS + * Workspace. + * + * @return Returns the heap control used for the C Program Heap. + */ +struct Heap_Control *_Workspace_Malloc_initialize_unified( void ); + +/** + * @brief This constant provides the C Program Heap initialization handler. + * + * This constant is defined by the application configuration option + * #CONFIGURE_UNIFIED_WORK_AREAS via <rtems/confdefs.h> or a default + * configuration. + */ +extern struct Heap_Control *( * const _Workspace_Malloc_initializer )( void ); + /** @} */ #ifdef __cplusplus |