diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-17 15:03:22 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-31 08:29:43 +0200 |
commit | 391ad3ee4ff868c637a4e1c254da96f194be04e4 (patch) | |
tree | 1016e0ddcc317aa892476ff0e47acb6beb6edd0c /cpukit/score/src/threadrestart.c | |
parent | score: Reduce _Thread_Reset() parameters (diff) | |
download | rtems-391ad3ee4ff868c637a4e1c254da96f194be04e4.tar.bz2 |
score: Fix thread restart extensions context
Run the thread restart extensions in the context of the restarted
thread. Run them with thread dispatching enabled.
Diffstat (limited to 'cpukit/score/src/threadrestart.c')
-rw-r--r-- | cpukit/score/src/threadrestart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c index d01a229d9f..a0416b802b 100644 --- a/cpukit/score/src/threadrestart.c +++ b/cpukit/score/src/threadrestart.c @@ -33,6 +33,8 @@ void _Thread_Life_action_handler( (void) action; _Thread_Action_release_and_ISR_enable( cpu, level ); + _User_extensions_Thread_restart( the_thread ); + _Thread_Disable_dispatch(); _Thread_Load_environment( executing ); @@ -83,8 +85,6 @@ bool _Thread_Restart( _Thread_Request_life_change( the_thread ); - _User_extensions_Thread_restart( the_thread ); - return true; } |