summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-07 13:44:16 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-26 19:57:31 +0200
commitb910e60e606f5bfaa378ed07c287b12c46d0b9bc (patch)
treee33b6b69b74d57c042c7eae71a6ec995af3f8ec8
parente5183238723bb35f5f5d2f0624b821f75f8b424b (diff)
downloadrtems-b910e60e606f5bfaa378ed07c287b12c46d0b9bc.tar.bz2
bsp/raspberrypi: Add interrupt get/set affinity
Add default implementations for bsp_interrupt_get_affinity() and bsp_interrupt_set_affinity() which are required to link all tests in SMP configurations. Update #3269.
-rw-r--r--bsps/arm/raspberrypi/include/bsp/irq.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/bsps/arm/raspberrypi/include/bsp/irq.h b/bsps/arm/raspberrypi/include/bsp/irq.h
index a363e7ce90..6801b01d84 100644
--- a/bsps/arm/raspberrypi/include/bsp/irq.h
+++ b/bsps/arm/raspberrypi/include/bsp/irq.h
@@ -25,6 +25,10 @@
#include <rtems/irq.h>
#include <rtems/irq-extension.h>
+#if defined(RTEMS_SMP)
+#include <rtems/score/processormask.h>
+#endif
+
/**
* @defgroup raspberrypi_interrupt Interrrupt Support
*
@@ -74,5 +78,27 @@
#define BSP_IRQ_COUNT (BCM2835_INTC_TOTAL_IRQ)
+#if defined(RTEMS_SMP)
+static inline rtems_status_code bsp_interrupt_set_affinity(
+ rtems_vector_number vector,
+ const Processor_mask *affinity
+)
+{
+ (void) vector;
+ (void) affinity;
+ return RTEMS_UNSATISFIED;
+}
+
+static inline rtems_status_code bsp_interrupt_get_affinity(
+ rtems_vector_number vector,
+ Processor_mask *affinity
+)
+{
+ (void) vector;
+ _Processor_mask_From_index( affinity, 0 );
+ return RTEMS_UNSATISFIED;
+}
+#endif
+
#endif /* ASM */
#endif /* LIBBSP_ARM_RASPBERRYPI_IRQ_H */