[PATCH v2 1/1] grlib/genirq: Taking into account that it could be more than one ISR enabled/disabled

Jan.Sommer at dlr.de Jan.Sommer at dlr.de
Fri Apr 16 06:51:14 UTC 2021


Thanks, pushed to master and 5.

From: devel <devel-bounces at rtems.org> On Behalf Of Daniel Hellstrom
Sent: Thursday, April 15, 2021 1:03 PM
To: Moyano Heredia, Victor Gabriel <Gabriel.Moyano at dlr.de>; devel at rtems.org
Subject: Re: [PATCH v2 1/1] grlib/genirq: Taking into account that it could be more than one ISR enabled/disabled


Looks good.

Thanks,
Daniel


On 2021-04-15 11:52, Moyano, Gabriel wrote:

---

 bsps/shared/grlib/irq/genirq.c | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)



diff --git a/bsps/shared/grlib/irq/genirq.c b/bsps/shared/grlib/irq/genirq.c

index 285416b0d3..ca80445c70 100644

--- a/bsps/shared/grlib/irq/genirq.c

+++ b/bsps/shared/grlib/irq/genirq.c

@@ -188,8 +188,8 @@ static int genirq_set_active(

                               return 1;

                        }

                        e = isrentry;

-               } else {

-                       enabled += isrentry->enabled;

+               } else if ( isrentry->enabled ) {

+                       enabled = 1;

                }

                isrentry = isrentry->next;

        }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210416/df858866/attachment-0001.html>


More information about the devel mailing list