[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:50:38 UTC 2021
Module: rtems
Branch: 5
Commit: bc806d41a549390b2947b52cbc0a3a04b625c7ee
Changeset: http://git.rtems.org/rtems/commit/?id=bc806d41a549390b2947b52cbc0a3a04b625c7ee
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
Closes #4385
---
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