diff options
Diffstat (limited to 'cpukit/score/include/rtems/score/threadimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/threadimpl.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index cf32082340..c61dd89f12 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -847,11 +847,9 @@ RTEMS_INLINE_ROUTINE void _Thread_Action_control_initialize( } RTEMS_INLINE_ROUTINE void _Thread_Action_initialize( - Thread_Action *action, - Thread_Action_handler handler + Thread_Action *action ) { - action->handler = handler; _Chain_Set_off_chain( &action->Node ); } @@ -890,8 +888,9 @@ RTEMS_INLINE_ROUTINE void _Thread_Action_release_and_ISR_enable( } RTEMS_INLINE_ROUTINE void _Thread_Add_post_switch_action( - Thread_Control *thread, - Thread_Action *action + Thread_Control *thread, + Thread_Action *action, + Thread_Action_handler handler ) { Per_CPU_Control *cpu_of_thread; @@ -899,6 +898,8 @@ RTEMS_INLINE_ROUTINE void _Thread_Add_post_switch_action( cpu_of_thread = _Thread_Action_ISR_disable_and_acquire( thread, &level ); + action->handler = handler; + #if defined(RTEMS_SMP) if ( _Per_CPU_Get() == cpu_of_thread ) { cpu_of_thread->dispatch_necessary = true; |