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

Daniel Hellstrom daniel at gaisler.com
Thu Apr 15 11:02:49 UTC 2021


Looks good.

Thanks,
Daniel

       

On 2021-04-15 11:52, Moyano, Gabriel wrote:
> ---
>   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;
>   	}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210415/66bd0bb2/attachment.html>


More information about the devel mailing list