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.
This commit is contained in:
Sebastian Huber
2021-07-07 13:44:16 +02:00
parent e518323872
commit b910e60e60

View File

@@ -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 */