diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-09 15:17:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-08-31 17:30:17 +0200 |
commit | d8172209b3f1288761ba410f52b89adeb56394fe (patch) | |
tree | aff73c4b9cc562a3307231749d449fd439c83897 /cpukit/include/rtems/score/stack.h | |
parent | score: Use _Freechain_Push() (diff) | |
download | rtems-d8172209b3f1288761ba410f52b89adeb56394fe.tar.bz2 |
score: Add _Stack_Allocator_do_initialize()
Do the stack allocator initialization and sanity check only if a
user-provided stack allocator was configured. This avoids a dependency
of _Thread_Handler_initialization() on the stack allocator.
Update #3959.
Diffstat (limited to 'cpukit/include/rtems/score/stack.h')
-rw-r--r-- | cpukit/include/rtems/score/stack.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/stack.h b/cpukit/include/rtems/score/stack.h index df1df74867..e869a04db5 100644 --- a/cpukit/include/rtems/score/stack.h +++ b/cpukit/include/rtems/score/stack.h @@ -123,6 +123,13 @@ extern const Stack_Allocator_allocate _Stack_Allocator_allocate; */ extern const Stack_Allocator_free _Stack_Allocator_free; +/** + * @brief Do the stack allocator initialization during system initialize. + * + * This function is used to initialize application provided stack allocators. + */ +void _Stack_Allocator_do_initialize( void ); + /** @} */ #ifdef __cplusplus |