summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoyano, Gabriel <gabriel.moyano@dlr.de>2021-04-09 08:28:40 +0200
committerJan Sommer <jan.sommer@dlr.de>2021-04-16 08:49:54 +0200
commitbc806d41a549390b2947b52cbc0a3a04b625c7ee (patch)
tree9c5fa69b7d0779094bc2ae1d254293ea31b2fc1b
parenta274b6fdcb7b39b3d67aad33dba0360a47f20204 (diff)
downloadrtems-bc806d41a549390b2947b52cbc0a3a04b625c7ee.tar.bz2
grlib/genirq: Taking into account that it could be more than one ISR enabled/disabled
Closes #4385
-rw-r--r--bsps/shared/grlib/irq/genirq.c4
1 files 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;
}