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

Moyano, Gabriel gabriel.moyano at dlr.de
Mon Apr 12 09:15:59 UTC 2021


---
 bsps/shared/grlib/irq/genirq.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bsps/shared/grlib/irq/genirq.c b/bsps/shared/grlib/irq/genirq.c
index 285416b0d3..f452f690ac 100644
--- a/bsps/shared/grlib/irq/genirq.c
+++ b/bsps/shared/grlib/irq/genirq.c
@@ -199,6 +199,11 @@ static int genirq_set_active(
 
 	e->enabled = action;
 
+	if ( enabled > 1) {
+		/* More than one ISR is already enabled */
+		enabled = 1;
+	}
+
 	return enabled;
 }
 
-- 
2.17.1



More information about the devel mailing list