diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-02-11 23:43:36 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-02-11 23:43:36 +0000 |
commit | 3ab906275610bbfa9efa5df8a0c5167eae646e6d (patch) | |
tree | c5ba0e897e6dd4b77ae38583925d8defc09b20f9 /cpukit/score/cpu/no_cpu/cpu_asm.c | |
parent | 2003-02-11 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-3ab906275610bbfa9efa5df8a0c5167eae646e6d.tar.bz2 |
2003-02-11 Joel Sherrill <joel@OARcorp.com>
* cpu_asm.c: Rework logic that decides when to call
_Thread_Dispatch. Analysis by Sergei Organov <osv@javad.ru>
determined that _ISR_Signals_to_thread_executing was not being
honored and/or cleared properly.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/no_cpu/cpu_asm.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cpukit/score/cpu/no_cpu/cpu_asm.c b/cpukit/score/cpu/no_cpu/cpu_asm.c index 2ee4067f6c..f2f4eb499d 100644 --- a/cpukit/score/cpu/no_cpu/cpu_asm.c +++ b/cpukit/score/cpu/no_cpu/cpu_asm.c @@ -154,28 +154,28 @@ void _ISR_Handler() * * (*_ISR_Vector_table[ vector ])( vector ); * + * _Thread_Dispatch_disable_level--; + * * --_ISR_Nest_level; * * if ( _ISR_Nest_level ) * goto the label "exit interrupt (simple case)" * - * #if ( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE ) - * restore stack - * #endif - * - * if ( !_Context_Switch_necessary ) - * goto the label "exit interrupt (simple case)" - * - * if ( !_ISR_Signals_to_thread_executing ) + * if ( _Thread_Dispatch_disable_level ) * _ISR_Signals_to_thread_executing = FALSE; * goto the label "exit interrupt (simple case)" * - * call _Thread_Dispatch() or prepare to return to _ISR_Dispatch - * - * prepare to get out of interrupt - * return from interrupt (maybe to _ISR_Dispatch) + * if ( _Context_Switch_necessary || _ISR_Signals_to_thread_executing ) { + * _ISR_Signals_to_thread_executing = FALSE; + * call _Thread_Dispatch() or prepare to return to _ISR_Dispatch + * prepare to get out of interrupt + * return from interrupt (maybe to _ISR_Dispatch) * * LABEL "exit interrupt (simple case): + * #if ( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE ) + * if outermost interrupt + * restore stack + * #endif * prepare to get out of interrupt * return from interrupt */ |