diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-07 16:28:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-12 09:08:36 +0100 |
commit | 0bde56b1b4ef7468188712c86e6bd2793532ddc9 (patch) | |
tree | aaca04985241fb16cb1ad6c856e5c87f6fd8a36e /cpukit/score/src/threadrestart.c | |
parent | score: Simplify thread stack allocation (diff) | |
download | rtems-0bde56b1b4ef7468188712c86e6bd2793532ddc9.tar.bz2 |
score: Simplify thread stack free
Update #3835.
Diffstat (limited to 'cpukit/score/src/threadrestart.c')
-rw-r--r-- | cpukit/score/src/threadrestart.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c index 83aef28c30..6ff9b44515 100644 --- a/cpukit/score/src/threadrestart.c +++ b/cpukit/score/src/threadrestart.c @@ -26,6 +26,7 @@ #include <rtems/score/chainimpl.h> #include <rtems/score/isrlock.h> #include <rtems/score/schedulerimpl.h> +#include <rtems/score/stackimpl.h> #include <rtems/score/sysstate.h> #include <rtems/score/threadqimpl.h> #include <rtems/score/userextimpl.h> @@ -184,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. */ - _Thread_Stack_Free( the_thread ); + _Stack_Free( the_thread->Start.allocated_stack ); _Workspace_Free( the_thread->Start.tls_area ); |