diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-09 12:11:19 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-08-31 17:30:17 +0200 |
commit | aedd92d1477df0025821b77c06b2f2b2dc7aaf67 (patch) | |
tree | 42c71c8c52678d2a986d53cc9a39e60e55e93251 /cpukit/include/rtems/score/thread.h | |
parent | score: Move _Stack_Allocator_free to separate file (diff) | |
download | rtems-aedd92d1477df0025821b77c06b2f2b2dc7aaf67.tar.bz2 |
score: Add stack free handler to TCB
This avoids a dependency to the stack free function in the thread
destruction.
Update #3959.
Diffstat (limited to 'cpukit/include/rtems/score/thread.h')
-rw-r--r-- | cpukit/include/rtems/score/thread.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpukit/include/rtems/score/thread.h b/cpukit/include/rtems/score/thread.h index ee0aee5b79..1daf6143f9 100644 --- a/cpukit/include/rtems/score/thread.h +++ b/cpukit/include/rtems/score/thread.h @@ -194,10 +194,9 @@ typedef struct { /** This field is the initial priority. */ Priority_Control initial_priority; /** - * @brief This field is a pointer to the allocated stack area, otherwise it - * is NULL. + * @brief This field points to the handler which should free the stack. */ - void *allocated_stack; + void ( *stack_free )( void * ); /** This field is the stack information. */ Stack_Control Initial_stack; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) |