[PATCH v2 1/1] grlib/genirq: Taking into account that it could be more than one ISR enabled/disabled
Moyano, Gabriel
gabriel.moyano at dlr.de
Thu Apr 15 09:52:00 UTC 2021
---
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;
}
--
2.17.1
More information about the devel
mailing list