<div dir="ltr"><div>Done. Can you please check now? I have verified that it works.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 5, 2021 at 11:09 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 03/07/2021 09:06, Richi Dubey wrote:<br>
> ---<br>
> cpukit/score/src/schedulerstrongapa.c | 21 ++++++++++++++++-----<br>
> 1 file changed, 16 insertions(+), 5 deletions(-)<br>
> <br>
> diff --git a/cpukit/score/src/schedulerstrongapa.c b/cpukit/score/src/schedulerstrongapa.c<br>
> index 845d19d1a8..b34ffe4b6d 100644<br>
> --- a/cpukit/score/src/schedulerstrongapa.c<br>
> +++ b/cpukit/score/src/schedulerstrongapa.c<br>
> @@ -187,7 +187,7 @@ static inline Scheduler_Node * _Scheduler_strong_APA_Find_highest_ready(<br>
> uint32_t rear<br>
> )<br>
> {<br>
> - Scheduler_Node *highest_ready;<br>
> + Scheduler_Node *highest_ready = NULL;<br>
> Scheduler_strong_APA_CPU *CPU;<br>
> const Chain_Node *tail;<br>
> Chain_Node *next;<br>
> @@ -259,6 +259,10 @@ static inline Scheduler_Node * _Scheduler_strong_APA_Find_highest_ready(<br>
> }<br>
> }<br>
> <br>
> + /*<br>
> + * By definition, the system would always have a ready node,<br>
> + * hence highest_ready would not be NULL.<br>
> + */<br>
> return highest_ready;<br>
<br>
Could you please add an _Assert( highest_ready != NULL ) statement here <br>
and also to the following parts.<br>
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax: +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
</blockquote></div>