summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-13 16:43:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-13 16:43:39 +0000
commit1b17790ccd966e1118da1c5cc40728da771e40a0 (patch)
treef4a08b789d04006e984936f16618ccb8b6843410 /cpukit/score/src
parentAdded include so _POSIX_signals_Manager_initialization is prototyped. (diff)
downloadrtems-1b17790ccd966e1118da1c5cc40728da771e40a0.tar.bz2
Added code so post context switch extensions can be run on every context
switch. This was needed to support process wide signals.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/thread.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c
index 5ca29b27b9..679c168e39 100644
--- a/cpukit/score/src/thread.c
+++ b/cpukit/score/src/thread.c
@@ -68,9 +68,11 @@ void _Thread_Handler_initialization(
_Thread_Heir = NULL;
_Thread_Allocated_fp = NULL;
+ _Thread_Do_post_task_switch_extension = 0;
+
_Thread_Maximum_extensions = maximum_extensions;
- _Thread_Ticks_per_timeslice = ticks_per_timeslice;
+ _Thread_Ticks_per_timeslice = ticks_per_timeslice;
_Thread_Ready_chain = _Workspace_Allocate_or_fatal_error(
(PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control)
@@ -288,7 +290,8 @@ void _Thread_Dispatch( void )
_ISR_Enable( level );
- if ( executing->do_post_task_switch_extension ) {
+ if ( _Thread_Do_post_task_switch_extension ||
+ executing->do_post_task_switch_extension ) {
executing->do_post_task_switch_extension = FALSE;
_API_extensions_Run_postswitch();
}