diff options
author | Moyano, Gabriel <gabriel.moyano@dlr.de> | 2021-04-09 08:28:40 +0200 |
---|---|---|
committer | Jan Sommer <jan.sommer@dlr.de> | 2021-04-16 08:49:54 +0200 |
commit | bc806d41a549390b2947b52cbc0a3a04b625c7ee (patch) | |
tree | 9c5fa69b7d0779094bc2ae1d254293ea31b2fc1b | |
parent | shell: Add i2c and spi commands (diff) | |
download | rtems-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.c | 4 |
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; } |