Re: [PATCH v2 4/4] rtems: Avoid potential recursion in ASR handling

2021-02-19 Thread Gedare Bloom
On Fri, Feb 19, 2021 at 2:42 AM Sebastian Huber wrote: > > On 19/02/2021 10:40, Sebastian Huber wrote: > > > + if ( > > +normal_asr_is_enabled && > > + !previous_asr_is_enabled && > > + asr->signals_pending != 0 > > + ) { > > +_Thread_Append_post_switch_action( executing, actio

Re: [PATCH v2 4/4] rtems: Avoid potential recursion in ASR handling

2021-02-19 Thread Sebastian Huber
On 19/02/2021 10:40, Sebastian Huber wrote: + if ( +normal_asr_is_enabled && + !previous_asr_is_enabled && + asr->signals_pending != 0 + ) { +_Thread_Append_post_switch_action( executing, action ); + } I will fix the alignment before I check it in. -- embedded brains GmbH

[PATCH v2 4/4] rtems: Avoid potential recursion in ASR handling

2021-02-19 Thread Sebastian Huber
Do the mode changes necessary for the ASR processing directly under protection of the thread state lock to avoid the recursive calls to thread dispatching done in rtems_task_mode(). Update #4244. --- cpukit/rtems/src/signalsend.c | 98 --- 1 file changed, 91 insert