diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-10 14:10:48 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-11 08:20:48 +0100 |
commit | df55d07f2e5c4b1c3d73c4f26a2cbb82f2af261c (patch) | |
tree | 7e1ef06ab4df2f97afdc676b7912886aba91d703 /cpukit/rtems/src/taskmode.c | |
parent | Use linker set for system initialization (diff) | |
download | rtems-df55d07f2e5c4b1c3d73c4f26a2cbb82f2af261c.tar.bz2 |
score: Untangle thread actions
Remove the thread action handler parameter from
_Thread_Action_initialize() and instead set it later in
_Thread_Add_post_switch_action(). This avoids a dependency on the
thread action handler via the thread initialization.
Diffstat (limited to 'cpukit/rtems/src/taskmode.c')
-rw-r--r-- | cpukit/rtems/src/taskmode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c index de30806186..fadca68225 100644 --- a/cpukit/rtems/src/taskmode.c +++ b/cpukit/rtems/src/taskmode.c @@ -21,6 +21,7 @@ #include <rtems/rtems/tasks.h> #include <rtems/rtems/asrimpl.h> #include <rtems/rtems/modesimpl.h> +#include <rtems/rtems/signalimpl.h> #include <rtems/score/schedulerimpl.h> #include <rtems/score/threadimpl.h> #include <rtems/config.h> @@ -103,7 +104,8 @@ rtems_status_code rtems_task_mode( needs_asr_dispatching = true; _Thread_Add_post_switch_action( executing, - &api->Signal_action + &api->Signal_action, + _Signal_Action_handler ); } } |