summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/stackimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-07 16:28:21 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-12 09:08:36 +0100
commit0bde56b1b4ef7468188712c86e6bd2793532ddc9 (patch)
treeaaca04985241fb16cb1ad6c856e5c87f6fd8a36e /cpukit/include/rtems/score/stackimpl.h
parentscore: Simplify thread stack allocation (diff)
downloadrtems-0bde56b1b4ef7468188712c86e6bd2793532ddc9.tar.bz2
score: Simplify thread stack free
Update #3835.
Diffstat (limited to 'cpukit/include/rtems/score/stackimpl.h')
-rw-r--r--cpukit/include/rtems/score/stackimpl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/stackimpl.h b/cpukit/include/rtems/score/stackimpl.h
index 6b14560c9b..f4671dea60 100644
--- a/cpukit/include/rtems/score/stackimpl.h
+++ b/cpukit/include/rtems/score/stackimpl.h
@@ -115,6 +115,15 @@ RTEMS_INLINE_ROUTINE size_t _Stack_Ensure_minimum (
*/
void *_Stack_Allocate( size_t stack_size );
+/**
+ * @brief Free the stack area allocated by _Stack_Allocate().
+ *
+ * Do nothing if the stack area is NULL.
+ *
+ * @param stack_area The stack area to free, or NULL.
+ */
+void _Stack_Free( void *stack_area );
+
/** @} */
#ifdef __cplusplus