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

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Feb 19 06:58:57 UTC 2021


On 18/02/2021 18:49, Gedare Bloom wrote:

>> +  executing->cpu_time_budget = normal_cpu_time_budget ;
>> +  executing->budget_algorithm = normal_budget_algorithm ;
>> +  prev_is_preemptible = executing->is_preemptible;
> 'prev' is unclear here, especially since we have "normal" as a
> previous mode also. Maybe, 'asr_is_preemptible' is better?
>
No, normal is not necessarily the previous mode. The ASR handler may 
change the mode. I can name it previous_is_preemptible if you don't like 
the prev. asr_is_preemptible doesn't fit, since this is the mode set up 
before the ASR handler is called.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/



More information about the devel mailing list