From 11e8bc5f0fa2d9485908874dbfe9cd65c1aec477 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 29 Jun 2010 00:34:12 +0000 Subject: 2010-06-28 Joel Sherrill PR 1573/cpukit * configure.ac, posix/src/killinfo.c, posix/src/psignalclearprocesssignals.c, posix/src/psignalsetprocesssignals.c, posix/src/psignalunblockthread.c, posix/src/pthreadcreate.c, posix/src/pthreadkill.c, posix/src/pthreadsigmask.c, rtems/src/signalsend.c, rtems/src/taskmode.c, score/Makefile.am, score/preinstall.am, score/include/rtems/system.h, score/include/rtems/score/context.h, score/include/rtems/score/isr.h, score/include/rtems/score/thread.h, score/src/isr.c, score/src/isrthreaddispatch.c, score/src/thread.c, score/src/threaddispatch.c, score/src/threadloadenv.c: Add a per cpu data structure which contains the information required by RTEMS for each CPU core. This encapsulates information such as thread executing, heir, idle and dispatch needed. * score/include/rtems/score/percpu.h, score/src/percpu.c: New files. --- cpukit/rtems/src/signalsend.c | 4 +--- cpukit/rtems/src/taskmode.c | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'cpukit/rtems') diff --git a/cpukit/rtems/src/signalsend.c b/cpukit/rtems/src/signalsend.c index 038317e55d..f51b168997 100644 --- a/cpukit/rtems/src/signalsend.c +++ b/cpukit/rtems/src/signalsend.c @@ -64,10 +64,8 @@ rtems_status_code rtems_signal_send( if ( asr->is_enabled ) { _ASR_Post_signals( signal_set, &asr->signals_posted ); - the_thread->do_post_task_switch_extension = true; - if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) - _ISR_Signals_to_thread_executing = true; + _Context_Switch_necessary = true; } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c index 56f707c5e7..57872b11ce 100644 --- a/cpukit/rtems/src/taskmode.c +++ b/cpukit/rtems/src/taskmode.c @@ -117,7 +117,6 @@ rtems_status_code rtems_task_mode( _ASR_Swap_signals( asr ); if ( _ASR_Are_signals_pending( asr ) ) { needs_asr_dispatching = true; - executing->do_post_task_switch_extension = true; } } } -- cgit v1.2.3