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/score/src/threadrestart.c | |
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 '')
-rw-r--r-- | cpukit/score/src/threadrestart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c index a2712fa061..3350bfe464 100644 --- a/cpukit/score/src/threadrestart.c +++ b/cpukit/score/src/threadrestart.c @@ -185,7 +185,7 @@ static void _Thread_Free( Thread_Control *the_thread ) * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ - _Stack_Free( the_thread->Start.allocated_stack ); + ( *the_thread->Start.stack_free )( the_thread->Start.Initial_stack.area ); #if defined(RTEMS_SMP) _ISR_lock_Destroy( &the_thread->Scheduler.Lock ); |