[rtems commit] grlib/genirq: Taking into account that it could be more than one ISR enabled/disabled

Jan Sommer jan at rtems.org
Fri Apr 16 06:47:47 UTC 2021


Module:    rtems
Branch:    master
Commit:    5728e8e3565ef6ffe56702b05077f4788e6eb055
Changeset: http://git.rtems.org/rtems/commit/?id=5728e8e3565ef6ffe56702b05077f4788e6eb055

Author:    Moyano, Gabriel <gabriel.moyano at dlr.de>
Date:      Fri Apr  9 08:28:40 2021 +0200

grlib/genirq: Taking into account that it could be more than one ISR enabled/disabled

---

 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 285416b..ca80445 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;
 	}



More information about the vc mailing list