summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/src/psignal.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-17 21:31:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-17 21:31:10 +0000
commitaa48536498a4aa184f8b7694277429fde9a10319 (patch)
treea65c312dd8e2bfdfbfdd271b0622f3ecf00d2846 /c/src/exec/posix/src/psignal.c
parentCorrected implementation of timed wait on condition variables. First (diff)
downloadrtems-aa48536498a4aa184f8b7694277429fde9a10319.tar.bz2
Added code to insure that the post switch extension was executed and
to made signals sent to a particular thread from an ISR operated correctly. This behavior was required by the exception detection/reporting code in the gnat runtime.
Diffstat (limited to 'c/src/exec/posix/src/psignal.c')
-rw-r--r--c/src/exec/posix/src/psignal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/c/src/exec/posix/src/psignal.c b/c/src/exec/posix/src/psignal.c
index 863220e608..289c9f02d5 100644
--- a/c/src/exec/posix/src/psignal.c
+++ b/c/src/exec/posix/src/psignal.c
@@ -1285,6 +1285,11 @@ int pthread_kill(
api->signals_pending |= signo_to_mask( sig );
(void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
+
+ the_thread->do_post_task_switch_extension = TRUE;
+
+ if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
+ _ISR_Signals_to_thread_executing = TRUE;
}
_Thread_Enable_dispatch();
return 0;