mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-08 00:23:14 +00:00
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:
@@ -25,6 +25,10 @@
|
|||||||
#include <rtems/irq.h>
|
#include <rtems/irq.h>
|
||||||
#include <rtems/irq-extension.h>
|
#include <rtems/irq-extension.h>
|
||||||
|
|
||||||
|
#if defined(RTEMS_SMP)
|
||||||
|
#include <rtems/score/processormask.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup raspberrypi_interrupt Interrrupt Support
|
* @defgroup raspberrypi_interrupt Interrrupt Support
|
||||||
*
|
*
|
||||||
@@ -74,5 +78,27 @@
|
|||||||
|
|
||||||
#define BSP_IRQ_COUNT (BCM2835_INTC_TOTAL_IRQ)
|
#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 /* ASM */
|
||||||
#endif /* LIBBSP_ARM_RASPBERRYPI_IRQ_H */
|
#endif /* LIBBSP_ARM_RASPBERRYPI_IRQ_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user