From be25de5ff891d69dda181c2c97e3d43e6ec5496d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 14 Mar 2022 15:45:52 +0100 Subject: bsps: Add gicv3_ppi_clear_pending() --- bsps/include/dev/irq/arm-gicv3.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bsps/include/dev/irq') diff --git a/bsps/include/dev/irq/arm-gicv3.h b/bsps/include/dev/irq/arm-gicv3.h index 59052bebd2..9cfbd8f207 100644 --- a/bsps/include/dev/irq/arm-gicv3.h +++ b/bsps/include/dev/irq/arm-gicv3.h @@ -176,6 +176,16 @@ static inline void gicv3_ppi_set_pending( sgi_ppi->icspispendr[0] = 1U << vector; } +static inline void gicv3_ppi_clear_pending( + rtems_vector_number vector, + uint32_t cpu_index +) +{ + volatile gic_sgi_ppi *sgi_ppi = gicv3_get_sgi_ppi(cpu_index); + + sgi_ppi->icspicpendr[0] = 1U << vector; +} + static inline void gicv3_trigger_sgi( rtems_vector_number vector, uint32_t targets -- cgit v1.2.3