forked from Imagelibrary/rtems
bsps/irq: Remove BSP_INTERRUPT_VECTOR_MIN
Remove BSP_INTERRUPT_VECTOR_MIN and unconditionally let interrupt vector numbers start with zero. The BSP_INTERRUPT_VECTOR_MIN == 0 invariant was tested by the previous commit and building all BSPs. Update #3269.
This commit is contained in:
@@ -48,7 +48,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 1023
|
#define BSP_INTERRUPT_VECTOR_MAX 1023
|
||||||
|
|
||||||
/* Interrupts vectors */
|
/* Interrupts vectors */
|
||||||
|
|||||||
@@ -48,7 +48,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 1023
|
#define BSP_INTERRUPT_VECTOR_MAX 1023
|
||||||
|
|
||||||
/* Interrupts vectors */
|
/* Interrupts vectors */
|
||||||
|
|||||||
@@ -48,7 +48,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 1023
|
#define BSP_INTERRUPT_VECTOR_MAX 1023
|
||||||
|
|
||||||
/* Interrupts vectors */
|
/* Interrupts vectors */
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Use interrupt IDs as defined in alt_interrupt_common.h */
|
/* Use interrupt IDs as defined in alt_interrupt_common.h */
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN ALT_INT_INTERRUPT_SGI0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX ALT_INT_INTERRUPT_RAM_ECC_UNCORRECTED_IRQ
|
#define BSP_INTERRUPT_VECTOR_MAX ALT_INT_INTERRUPT_RAM_ECC_UNCORRECTED_IRQ
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
#include <rtems/irq-extension.h>
|
#include <rtems/irq-extension.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 64
|
#define BSP_INTERRUPT_VECTOR_MAX 64
|
||||||
|
|
||||||
#endif /* LIBBSP_ARM_ATSAM_ESV_70_IRQ_H */
|
#endif /* LIBBSP_ARM_ATSAM_ESV_70_IRQ_H */
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
#include <rtems/irq.h>
|
#include <rtems/irq.h>
|
||||||
#include <rtems/irq-extension.h>
|
#include <rtems/irq-extension.h>
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 127
|
#define BSP_INTERRUPT_VECTOR_MAX 127
|
||||||
|
|
||||||
#endif /* ASM */
|
#endif /* ASM */
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Mask all interrupts */
|
/* Mask all interrupts */
|
||||||
for(i = BSP_INTERRUPT_VECTOR_MIN; i <= BSP_INTERRUPT_VECTOR_MAX; i++)
|
for(i = 0; i <= BSP_INTERRUPT_VECTOR_MAX; i++)
|
||||||
bsp_interrupt_vector_disable(i);
|
bsp_interrupt_vector_disable(i);
|
||||||
|
|
||||||
/* Install generic interrupt handler */
|
/* Install generic interrupt handler */
|
||||||
|
|||||||
@@ -88,8 +88,6 @@
|
|||||||
#define BSP_INT_WDT 63
|
#define BSP_INT_WDT 63
|
||||||
#define BSP_MAX_INT 64
|
#define BSP_MAX_INT 64
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
|
#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
|
||||||
|
|
||||||
#endif /* __IRQ_H__ */
|
#endif /* __IRQ_H__ */
|
||||||
|
|||||||
@@ -72,8 +72,6 @@
|
|||||||
#define AT91RM9200_INT_IRQ6 31
|
#define AT91RM9200_INT_IRQ6 31
|
||||||
#define AT91RM9200_MAX_INT 32
|
#define AT91RM9200_MAX_INT 32
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX (AT91RM9200_MAX_INT - 1)
|
#define BSP_INTERRUPT_VECTOR_MAX (AT91RM9200_MAX_INT - 1)
|
||||||
|
|
||||||
#endif /* __IRQ_H__ */
|
#endif /* __IRQ_H__ */
|
||||||
|
|||||||
@@ -83,8 +83,6 @@
|
|||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
|
#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@@ -40,8 +40,6 @@
|
|||||||
|
|
||||||
#include <bspopts.h>
|
#include <bspopts.h>
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX (32 + BSP_ARM_SHARED_PERIPHERAL_INTERRUPT_COUNT)
|
#define BSP_INTERRUPT_VECTOR_MAX (32 + BSP_ARM_SHARED_PERIPHERAL_INTERRUPT_COUNT)
|
||||||
|
|
||||||
#endif /* LIBBSP_ARM_FVP_IRQ_H */
|
#endif /* LIBBSP_ARM_FVP_IRQ_H */
|
||||||
|
|||||||
@@ -20,8 +20,6 @@
|
|||||||
|
|
||||||
#include <pxa255.h>
|
#include <pxa255.h>
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX (PRIMARY_IRQS - 1)
|
#define BSP_INTERRUPT_VECTOR_MAX (PRIMARY_IRQS - 1)
|
||||||
|
|
||||||
#endif /* __asm__ */
|
#endif /* __asm__ */
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 159
|
#define BSP_INTERRUPT_VECTOR_MAX 159
|
||||||
#define BSP_INTERRUPT_VECTOR_INVALID (UINT32_MAX)
|
#define BSP_INTERRUPT_VECTOR_INVALID (UINT32_MAX)
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 159
|
#define BSP_INTERRUPT_VECTOR_MAX 159
|
||||||
#define BSP_INTERRUPT_VECTOR_INVALID (UINT32_MAX)
|
#define BSP_INTERRUPT_VECTOR_INVALID (UINT32_MAX)
|
||||||
|
|
||||||
|
|||||||
@@ -100,7 +100,6 @@
|
|||||||
#define LM3S69XX_IRQ_PRIORITY_HIGHEST LM3S69XX_IRQ_PRIORITY_VALUE_MIN
|
#define LM3S69XX_IRQ_PRIORITY_HIGHEST LM3S69XX_IRQ_PRIORITY_VALUE_MIN
|
||||||
#define LM3S69XX_IRQ_PRIORITY_LOWEST LM3S69XX_IRQ_PRIORITY_VALUE_MAX
|
#define LM3S69XX_IRQ_PRIORITY_LOWEST LM3S69XX_IRQ_PRIORITY_VALUE_MAX
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
/* NOTE: for lm3s6965 - 43 */
|
/* NOTE: for lm3s6965 - 43 */
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 47
|
#define BSP_INTERRUPT_VECTOR_MAX 47
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,6 @@
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0U
|
|
||||||
|
|
||||||
#define LPC176X_IRQ_WDT 0U
|
#define LPC176X_IRQ_WDT 0U
|
||||||
#define LPC176X_IRQ_TIMER_0 1U
|
#define LPC176X_IRQ_TIMER_0 1U
|
||||||
#define LPC176X_IRQ_TIMER_1 2U
|
#define LPC176X_IRQ_TIMER_1 2U
|
||||||
|
|||||||
@@ -35,8 +35,6 @@
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#ifdef ARM_MULTILIB_ARCH_V4
|
#ifdef ARM_MULTILIB_ARCH_V4
|
||||||
#define LPC24XX_IRQ_WDT 0
|
#define LPC24XX_IRQ_WDT 0
|
||||||
#define LPC24XX_IRQ_SOFTWARE 1
|
#define LPC24XX_IRQ_SOFTWARE 1
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
|
|||||||
/* Use IRQ category */
|
/* Use IRQ category */
|
||||||
VICIntSelect = 0;
|
VICIntSelect = 0;
|
||||||
|
|
||||||
for (i = BSP_INTERRUPT_VECTOR_MIN; i <= BSP_INTERRUPT_VECTOR_MAX; ++i) {
|
for (i = 0; i <= BSP_INTERRUPT_VECTOR_MAX; ++i) {
|
||||||
/* Use the vector address register to store the vector number */
|
/* Use the vector address register to store the vector number */
|
||||||
addr [i] = i;
|
addr [i] = i;
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,6 @@ extern "C" {
|
|||||||
#define LPC32XX_IRQ_PRIORITY_HIGHEST LPC32XX_IRQ_PRIORITY_VALUE_MIN
|
#define LPC32XX_IRQ_PRIORITY_HIGHEST LPC32XX_IRQ_PRIORITY_VALUE_MIN
|
||||||
#define LPC32XX_IRQ_PRIORITY_LOWEST LPC32XX_IRQ_PRIORITY_VALUE_MAX
|
#define LPC32XX_IRQ_PRIORITY_LOWEST LPC32XX_IRQ_PRIORITY_VALUE_MAX
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN LPC32XX_IRQ_SIC_1_IRQ
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX LPC32XX_IRQ_SYSCLK
|
#define BSP_INTERRUPT_VECTOR_MAX LPC32XX_IRQ_SYSCLK
|
||||||
|
|
||||||
#define LPC32XX_IRQ_COUNT (BSP_INTERRUPT_VECTOR_MAX + 1)
|
#define LPC32XX_IRQ_COUNT (BSP_INTERRUPT_VECTOR_MAX + 1)
|
||||||
|
|||||||
@@ -69,7 +69,6 @@
|
|||||||
#define BCM2835_IRQ_ID_ILL_ACCESS_1 70
|
#define BCM2835_IRQ_ID_ILL_ACCESS_1 70
|
||||||
#define BCM2835_IRQ_ID_ILL_ACCESS_0 71
|
#define BCM2835_IRQ_ID_ILL_ACCESS_0 71
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN (0)
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX (BCM2835_INTC_TOTAL_IRQ - 1)
|
#define BSP_INTERRUPT_VECTOR_MAX (BCM2835_INTC_TOTAL_IRQ - 1)
|
||||||
#define BSP_INTERRUPT_VECTOR_INVALID (UINT32_MAX)
|
#define BSP_INTERRUPT_VECTOR_INVALID (UINT32_MAX)
|
||||||
|
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ extern "C" {
|
|||||||
#define RVPBXA9_IRQ_P_NINT_6 88
|
#define RVPBXA9_IRQ_P_NINT_6 88
|
||||||
#define RVPBXA9_IRQ_P_NINT_7 89
|
#define RVPBXA9_IRQ_P_NINT_7 89
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 89
|
#define BSP_INTERRUPT_VECTOR_MAX 89
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@@ -53,8 +53,6 @@
|
|||||||
#define LPC22xx_INTERRUPT_CAN4RX 27 /* CAN2 Rx interrupt */
|
#define LPC22xx_INTERRUPT_CAN4RX 27 /* CAN2 Rx interrupt */
|
||||||
#define BSP_MAX_INT 28
|
#define BSP_MAX_INT 28
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
|
#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
|
||||||
|
|
||||||
#define UNDEFINED_INSTRUCTION_VECTOR_ADDR (*(u_long *)0x00000004L)
|
#define UNDEFINED_INSTRUCTION_VECTOR_ADDR (*(u_long *)0x00000004L)
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
|
|||||||
|
|
||||||
_ARMV7M_SCB->icsr = ARMV7M_SCB_ICSR_PENDSVCLR | ARMV7M_SCB_ICSR_PENDSTCLR;
|
_ARMV7M_SCB->icsr = ARMV7M_SCB_ICSR_PENDSVCLR | ARMV7M_SCB_ICSR_PENDSTCLR;
|
||||||
|
|
||||||
for (i = BSP_INTERRUPT_VECTOR_MIN; i <= BSP_INTERRUPT_VECTOR_MAX; ++i) {
|
for (i = 0; i <= BSP_INTERRUPT_VECTOR_MAX; ++i) {
|
||||||
_ARMV7M_NVIC_Clear_enable(i);
|
_ARMV7M_NVIC_Clear_enable(i);
|
||||||
_ARMV7M_NVIC_Clear_pending(i);
|
_ARMV7M_NVIC_Clear_pending(i);
|
||||||
_ARMV7M_NVIC_Set_priority(i, BSP_ARMV7M_IRQ_PRIORITY_DEFAULT);
|
_ARMV7M_NVIC_Set_priority(i, BSP_ARMV7M_IRQ_PRIORITY_DEFAULT);
|
||||||
|
|||||||
@@ -90,8 +90,6 @@
|
|||||||
#error "Undefined Samsung CPU model"
|
#error "Undefined Samsung CPU model"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
|
#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
|
||||||
|
|
||||||
#endif /* _IRQ_H_ */
|
#endif /* _IRQ_H_ */
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ extern "C" {
|
|||||||
#define STM32F4_IRQ_PRIORITY_HIGHEST STM32F4_IRQ_PRIORITY_VALUE_MIN
|
#define STM32F4_IRQ_PRIORITY_HIGHEST STM32F4_IRQ_PRIORITY_VALUE_MIN
|
||||||
#define STM32F4_IRQ_PRIORITY_LOWEST STM32F4_IRQ_PRIORITY_VALUE_MAX
|
#define STM32F4_IRQ_PRIORITY_LOWEST STM32F4_IRQ_PRIORITY_VALUE_MAX
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 81
|
#define BSP_INTERRUPT_VECTOR_MAX 81
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@@ -36,8 +36,6 @@
|
|||||||
|
|
||||||
#endif /* ASM */
|
#endif /* ASM */
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 239
|
#define BSP_INTERRUPT_VECTOR_MAX 239
|
||||||
|
|
||||||
#endif /* LIBBSP_ARM_STM32H7_IRQ_H */
|
#endif /* LIBBSP_ARM_STM32H7_IRQ_H */
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
#include <rtems/irq-extension.h>
|
#include <rtems/irq-extension.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0U
|
|
||||||
#define TMS570_IRQ_ESM_HIGH 0
|
#define TMS570_IRQ_ESM_HIGH 0
|
||||||
#define TMS570_IRQ_RESERVED 1
|
#define TMS570_IRQ_RESERVED 1
|
||||||
#define TMS570_IRQ_TIMER_0 2
|
#define TMS570_IRQ_TIMER_0 2
|
||||||
|
|||||||
@@ -40,7 +40,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 1023
|
#define BSP_INTERRUPT_VECTOR_MAX 1023
|
||||||
|
|
||||||
/* Xen guest interrupts */
|
/* Xen guest interrupts */
|
||||||
|
|||||||
@@ -114,7 +114,6 @@ extern "C" {
|
|||||||
#define ZYNQ_IRQ_FPGA_15 91
|
#define ZYNQ_IRQ_FPGA_15 91
|
||||||
#define ZYNQ_IRQ_PARITY 92
|
#define ZYNQ_IRQ_PARITY 92
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 92
|
#define BSP_INTERRUPT_VECTOR_MAX 92
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ extern "C" {
|
|||||||
#define ZYNQMP_IRQ_UART_0 53
|
#define ZYNQMP_IRQ_UART_0 53
|
||||||
#define ZYNQMP_IRQ_UART_1 54
|
#define ZYNQMP_IRQ_UART_1 54
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 187
|
#define BSP_INTERRUPT_VECTOR_MAX 187
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ extern "C" {
|
|||||||
#define BSP_RT_TIMER3 10
|
#define BSP_RT_TIMER3 10
|
||||||
#define BSP_SMP_IPI 16 /* not part of the ATPIC */
|
#define BSP_SMP_IPI 16 /* not part of the ATPIC */
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN BSP_IRQ_VECTOR_LOWEST_OFFSET
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_IRQ_VECTOR_MAX_OFFSET
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_IRQ_VECTOR_MAX_OFFSET
|
||||||
|
|
||||||
/** @brief
|
/** @brief
|
||||||
|
|||||||
@@ -44,11 +44,6 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Default minimum interrupt vector.
|
|
||||||
*/
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Default maximum interrupt vector.
|
* @brief Default maximum interrupt vector.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -58,20 +58,15 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#if !defined(BSP_INTERRUPT_VECTOR_MIN) || !defined(BSP_INTERRUPT_VECTOR_MAX) || (BSP_INTERRUPT_VECTOR_MAX + 1) < BSP_INTERRUPT_VECTOR_MIN
|
#if !defined(BSP_INTERRUPT_VECTOR_MAX)
|
||||||
#error "invalid BSP_INTERRUPT_VECTOR_MIN or BSP_INTERRUPT_VECTOR_MAX"
|
#error "BSP_INTERRUPT_VECTOR_MAX shall be defined"
|
||||||
#endif
|
|
||||||
|
|
||||||
#if BSP_INTERRUPT_VECTOR_MIN != 0
|
|
||||||
#error "BSP_INTERRUPT_VECTOR_MIN shall be zero"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(BSP_INTERRUPT_USE_INDEX_TABLE) && !defined(BSP_INTERRUPT_HANDLER_TABLE_SIZE)
|
#if defined(BSP_INTERRUPT_USE_INDEX_TABLE) && !defined(BSP_INTERRUPT_HANDLER_TABLE_SIZE)
|
||||||
#error "if you define BSP_INTERRUPT_USE_INDEX_TABLE, you have to define BSP_INTERRUPT_HANDLER_TABLE_SIZE etc. as well"
|
#error "if you define BSP_INTERRUPT_USE_INDEX_TABLE, you have to define BSP_INTERRUPT_HANDLER_TABLE_SIZE etc. as well"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_NUMBER \
|
#define BSP_INTERRUPT_VECTOR_NUMBER (BSP_INTERRUPT_VECTOR_MAX + 1)
|
||||||
(BSP_INTERRUPT_VECTOR_MAX - BSP_INTERRUPT_VECTOR_MIN + 1)
|
|
||||||
|
|
||||||
#ifndef BSP_INTERRUPT_HANDLER_TABLE_SIZE
|
#ifndef BSP_INTERRUPT_HANDLER_TABLE_SIZE
|
||||||
#define BSP_INTERRUPT_HANDLER_TABLE_SIZE BSP_INTERRUPT_VECTOR_NUMBER
|
#define BSP_INTERRUPT_HANDLER_TABLE_SIZE BSP_INTERRUPT_VECTOR_NUMBER
|
||||||
@@ -117,9 +112,9 @@ static inline rtems_vector_number bsp_interrupt_handler_index(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
#ifdef BSP_INTERRUPT_USE_INDEX_TABLE
|
#ifdef BSP_INTERRUPT_USE_INDEX_TABLE
|
||||||
return bsp_interrupt_handler_index_table [vector - BSP_INTERRUPT_VECTOR_MIN];
|
return bsp_interrupt_handler_index_table [vector];
|
||||||
#else
|
#else
|
||||||
return vector - BSP_INTERRUPT_VECTOR_MIN;
|
return vector;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,7 +126,7 @@ static inline rtems_vector_number bsp_interrupt_handler_index(
|
|||||||
* @brief Generic BSP Interrupt Support
|
* @brief Generic BSP Interrupt Support
|
||||||
*
|
*
|
||||||
* The BSP interrupt support manages a sequence of interrupt vector numbers
|
* The BSP interrupt support manages a sequence of interrupt vector numbers
|
||||||
* ranging from @ref BSP_INTERRUPT_VECTOR_MIN to @ref BSP_INTERRUPT_VECTOR_MAX
|
* ranging from zero to @ref BSP_INTERRUPT_VECTOR_MAX
|
||||||
* including the end points. It provides methods to
|
* including the end points. It provides methods to
|
||||||
* @ref bsp_interrupt_handler_install() "install",
|
* @ref bsp_interrupt_handler_install() "install",
|
||||||
* @ref bsp_interrupt_handler_remove() "remove" and
|
* @ref bsp_interrupt_handler_remove() "remove" and
|
||||||
@@ -143,7 +138,7 @@ static inline rtems_vector_number bsp_interrupt_handler_index(
|
|||||||
*
|
*
|
||||||
* You have to configure the BSP interrupt support in the <bsp/irq.h> file
|
* You have to configure the BSP interrupt support in the <bsp/irq.h> file
|
||||||
* for each BSP. For a minimum configuration you have to provide
|
* for each BSP. For a minimum configuration you have to provide
|
||||||
* @ref BSP_INTERRUPT_VECTOR_MIN and @ref BSP_INTERRUPT_VECTOR_MAX.
|
* @ref BSP_INTERRUPT_VECTOR_MAX.
|
||||||
*
|
*
|
||||||
* For boards with small memory requirements you can define
|
* For boards with small memory requirements you can define
|
||||||
* @ref BSP_INTERRUPT_USE_INDEX_TABLE. With an enabled index table the handler
|
* @ref BSP_INTERRUPT_USE_INDEX_TABLE. With an enabled index table the handler
|
||||||
@@ -178,8 +173,7 @@ static inline rtems_vector_number bsp_interrupt_handler_index(
|
|||||||
*/
|
*/
|
||||||
static inline bool bsp_interrupt_is_valid_vector(rtems_vector_number vector)
|
static inline bool bsp_interrupt_is_valid_vector(rtems_vector_number vector)
|
||||||
{
|
{
|
||||||
return (rtems_vector_number) BSP_INTERRUPT_VECTOR_MIN <= vector
|
return vector <= (rtems_vector_number) BSP_INTERRUPT_VECTOR_MAX;
|
||||||
&& vector <= (rtems_vector_number) BSP_INTERRUPT_VECTOR_MAX;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -32,11 +32,6 @@
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Minimum vector number.
|
|
||||||
*/
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Maximum vector number.
|
* @brief Maximum vector number.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -89,8 +89,6 @@
|
|||||||
#define MCF548X_IRQ_GPT1 61
|
#define MCF548X_IRQ_GPT1 61
|
||||||
#define MCF548X_IRQ_GPT0 62
|
#define MCF548X_IRQ_GPT0 62
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 63
|
#define BSP_INTERRUPT_VECTOR_MAX 63
|
||||||
|
|
||||||
#define BSP_INTERRUPT_CUSTOM_VALID_VECTOR
|
#define BSP_INTERRUPT_CUSTOM_VALID_VECTOR
|
||||||
|
|||||||
@@ -36,7 +36,6 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/* MIPS_INTERRUPT_BASE should be 32 (0x20) */
|
/* MIPS_INTERRUPT_BASE should be 32 (0x20) */
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define AU1X00_IRQ_SW0 (MIPS_INTERRUPT_BASE + 0)
|
#define AU1X00_IRQ_SW0 (MIPS_INTERRUPT_BASE + 0)
|
||||||
#define AU1X00_IRQ_SW1 (MIPS_INTERRUPT_BASE + 1)
|
#define AU1X00_IRQ_SW1 (MIPS_INTERRUPT_BASE + 1)
|
||||||
#define AU1X00_IRQ_IC0_REQ0 (MIPS_INTERRUPT_BASE + 2)
|
#define AU1X00_IRQ_IC0_REQ0 (MIPS_INTERRUPT_BASE + 2)
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define RM5231_MAXIMUM_VECTORS (MIPS_INTERRUPT_BASE+8)
|
#define RM5231_MAXIMUM_VECTORS (MIPS_INTERRUPT_BASE+8)
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX RM5231_MAXIMUM_VECTORS
|
#define BSP_INTERRUPT_VECTOR_MAX RM5231_MAXIMUM_VECTORS
|
||||||
|
|
||||||
|
|||||||
@@ -31,8 +31,6 @@
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interrupt Vector Numbers
|
* Interrupt Vector Numbers
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -31,8 +31,6 @@
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interrupt Vector Numbers
|
* Interrupt Vector Numbers
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
* Interrupt Vector Numbers
|
* Interrupt Vector Numbers
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define TX4925_IRQ_RSV1 MIPS_INTERRUPT_BASE+0
|
#define TX4925_IRQ_RSV1 MIPS_INTERRUPT_BASE+0
|
||||||
#define TX4925_IRQ_WTE MIPS_INTERRUPT_BASE+1
|
#define TX4925_IRQ_WTE MIPS_INTERRUPT_BASE+1
|
||||||
#define TX4925_IRQ_INT0 MIPS_INTERRUPT_BASE+2
|
#define TX4925_IRQ_INT0 MIPS_INTERRUPT_BASE+2
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
* Interrupt Vector Numbers
|
* Interrupt Vector Numbers
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define TX4938_IRQ_ECC MIPS_INTERRUPT_BASE+0
|
#define TX4938_IRQ_ECC MIPS_INTERRUPT_BASE+0
|
||||||
#define TX4938_IRQ_WTE MIPS_INTERRUPT_BASE+1
|
#define TX4938_IRQ_WTE MIPS_INTERRUPT_BASE+1
|
||||||
#define TX4938_IRQ_INT0 MIPS_INTERRUPT_BASE+2
|
#define TX4938_IRQ_INT0 MIPS_INTERRUPT_BASE+2
|
||||||
|
|||||||
@@ -203,8 +203,6 @@ typedef enum {
|
|||||||
#define BSP_CRIT_IRQ_PRIO_LEVELS 4
|
#define BSP_CRIT_IRQ_PRIO_LEVELS 4
|
||||||
#define BSP_PERIODIC_TIMER BSP_SIU_IRQ_TMR6
|
#define BSP_PERIODIC_TIMER BSP_SIU_IRQ_TMR6
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN BSP_LOWEST_OFFSET
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -162,8 +162,6 @@ extern "C" {
|
|||||||
BSP_IPIC_IRQ_LAST = BSP_IPIC_IRQ_MAX_OFFSET,
|
BSP_IPIC_IRQ_LAST = BSP_IPIC_IRQ_MAX_OFFSET,
|
||||||
} rtems_irq_symbolic_name;
|
} rtems_irq_symbolic_name;
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN BSP_LOWEST_OFFSET
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
||||||
|
|
||||||
rtems_status_code mpc83xx_ipic_set_mask( rtems_vector_number vector, rtems_vector_number mask_vector, bool mask);
|
rtems_status_code mpc83xx_ipic_set_mask( rtems_vector_number vector, rtems_vector_number mask_vector, bool mask);
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ extern "C" {
|
|||||||
#define BSP_IRQ_NUMBER (BSP_MISC_IRQ_MAX_OFFSET + 1)
|
#define BSP_IRQ_NUMBER (BSP_MISC_IRQ_MAX_OFFSET + 1)
|
||||||
#define BSP_LOWEST_OFFSET (BSP_ISA_IRQ_LOWEST_OFFSET)
|
#define BSP_LOWEST_OFFSET (BSP_ISA_IRQ_LOWEST_OFFSET)
|
||||||
#define BSP_MAX_OFFSET (BSP_MISC_IRQ_MAX_OFFSET)
|
#define BSP_MAX_OFFSET (BSP_MISC_IRQ_MAX_OFFSET)
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN (BSP_LOWEST_OFFSET)
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_OFFSET)
|
#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_OFFSET)
|
||||||
/*
|
/*
|
||||||
* Some ISA IRQ symbolic name definition
|
* Some ISA IRQ symbolic name definition
|
||||||
|
|||||||
@@ -477,8 +477,6 @@ rtems_status_code mpc55xx_intc_clear_software_irq(rtems_vector_number vector);
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN MPC55XX_IRQ_MIN
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX MPC55XX_IRQ_MAX
|
#define BSP_INTERRUPT_VECTOR_MAX MPC55XX_IRQ_MAX
|
||||||
|
|
||||||
#ifdef BSP_INTERRUPT_HANDLER_TABLE_SIZE
|
#ifdef BSP_INTERRUPT_HANDLER_TABLE_SIZE
|
||||||
|
|||||||
@@ -141,8 +141,6 @@ extern volatile unsigned int ppc_cached_irq_mask;
|
|||||||
#define BSP_DECREMENTER (BSP_PROCESSOR_IRQ_LOWEST_OFFSET)
|
#define BSP_DECREMENTER (BSP_PROCESSOR_IRQ_LOWEST_OFFSET)
|
||||||
#define BSP_PERIODIC_TIMER (BSP_DECREMENTER)
|
#define BSP_PERIODIC_TIMER (BSP_DECREMENTER)
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN BSP_LOWEST_OFFSET
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
||||||
|
|
||||||
#define CPM_INTERRUPT
|
#define CPM_INTERRUPT
|
||||||
|
|||||||
@@ -57,7 +57,6 @@
|
|||||||
|
|
||||||
#include <bsp/irq_supp.h>
|
#include <bsp/irq_supp.h>
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN BSP_LOWEST_OFFSET
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@@ -56,8 +56,6 @@
|
|||||||
*/
|
*/
|
||||||
#define BSP_DECREMENTER (BSP_PROCESSOR_IRQ_LOWEST_OFFSET)
|
#define BSP_DECREMENTER (BSP_PROCESSOR_IRQ_LOWEST_OFFSET)
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN BSP_LOWEST_OFFSET
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
||||||
|
|
||||||
/* #include <bsp/irq_supp.h> */
|
/* #include <bsp/irq_supp.h> */
|
||||||
|
|||||||
@@ -366,8 +366,6 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define QORIQ_PIC_PRIORITY_LOWEST 1
|
#define QORIQ_PIC_PRIORITY_LOWEST 1
|
||||||
#define QORIQ_PIC_PRIORITY_HIGHEST 15
|
#define QORIQ_PIC_PRIORITY_HIGHEST 15
|
||||||
#define QORIQ_PIC_PRIORITY_DISABLED 0
|
#define QORIQ_PIC_PRIORITY_DISABLED 0
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
|
|||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
for (i = BSP_INTERRUPT_VECTOR_MIN; i <= BSP_INTERRUPT_VECTOR_MAX; ++i) {
|
for (i = 0; i <= BSP_INTERRUPT_VECTOR_MAX; ++i) {
|
||||||
uint32_t config;
|
uint32_t config;
|
||||||
unsigned int priority;
|
unsigned int priority;
|
||||||
uint32_t destination;
|
uint32_t destination;
|
||||||
@@ -354,7 +354,7 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
|
|||||||
|
|
||||||
pic_reset();
|
pic_reset();
|
||||||
|
|
||||||
for (i = BSP_INTERRUPT_VECTOR_MIN; i <= BSP_INTERRUPT_VECTOR_MAX; ++i) {
|
for (i = 0; i <= BSP_INTERRUPT_VECTOR_MAX; ++i) {
|
||||||
volatile qoriq_pic_src_cfg *src_cfg = get_src_cfg(i);
|
volatile qoriq_pic_src_cfg *src_cfg = get_src_cfg(i);
|
||||||
|
|
||||||
src_cfg->vpr = VPR_MSK | VPR_P
|
src_cfg->vpr = VPR_MSK | VPR_P
|
||||||
@@ -375,7 +375,7 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
|
|||||||
|
|
||||||
qoriq.pic.ctpr = 0;
|
qoriq.pic.ctpr = 0;
|
||||||
|
|
||||||
for (i = BSP_INTERRUPT_VECTOR_MIN; i <= BSP_INTERRUPT_VECTOR_MAX; ++i) {
|
for (i = 0; i <= BSP_INTERRUPT_VECTOR_MAX; ++i) {
|
||||||
qoriq.pic.iack;
|
qoriq.pic.iack;
|
||||||
qoriq.pic.eoi = 0;
|
qoriq.pic.eoi = 0;
|
||||||
qoriq.pic.whoami;
|
qoriq.pic.whoami;
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 0
|
#define BSP_INTERRUPT_VECTOR_MAX 0
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE void bsp_interrupt_set_affinity(
|
RTEMS_INLINE_ROUTINE void bsp_interrupt_set_affinity(
|
||||||
|
|||||||
@@ -146,8 +146,6 @@ extern "C" {
|
|||||||
#define BSP_PERIODIC_TIMER BSP_SIU_INT_IRQ_6
|
#define BSP_PERIODIC_TIMER BSP_SIU_INT_IRQ_6
|
||||||
#define BSP_FAST_ETHERNET_CTRL BSP_SIU_INT_IRQ_3
|
#define BSP_FAST_ETHERNET_CTRL BSP_SIU_INT_IRQ_3
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN BSP_LOWEST_OFFSET
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
|
||||||
|
|
||||||
extern int BSP_irq_enabled_at_cpm(const rtems_irq_number irqLine);
|
extern int BSP_irq_enabled_at_cpm(const rtems_irq_number irqLine);
|
||||||
|
|||||||
@@ -61,7 +61,6 @@
|
|||||||
(BSP_IS_PROCESSOR_IRQ(irqnum) \
|
(BSP_IS_PROCESSOR_IRQ(irqnum) \
|
||||||
|| BSP_IS_OPBINTC_IRQ(irqnum))
|
|| BSP_IS_OPBINTC_IRQ(irqnum))
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_PROCESSOR_IRQ_MAX_OFFSET
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_PROCESSOR_IRQ_MAX_OFFSET
|
||||||
|
|
||||||
#ifndef ASM
|
#ifndef ASM
|
||||||
|
|||||||
@@ -54,8 +54,6 @@
|
|||||||
|
|
||||||
#define RISCV_INTERRUPT_VECTOR_EXTERNAL_TO_INDEX(x) ((x) - 2)
|
#define RISCV_INTERRUPT_VECTOR_EXTERNAL_TO_INDEX(x) ((x) - 2)
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX RISCV_INTERRUPT_VECTOR_EXTERNAL(RISCV_MAXIMUM_EXTERNAL_INTERRUPTS - 1)
|
#define BSP_INTERRUPT_VECTOR_MAX RISCV_INTERRUPT_VECTOR_EXTERNAL(RISCV_MAXIMUM_EXTERNAL_INTERRUPTS - 1)
|
||||||
|
|
||||||
void bsp_interrupt_set_affinity(
|
void bsp_interrupt_set_affinity(
|
||||||
|
|||||||
@@ -54,8 +54,6 @@
|
|||||||
|
|
||||||
#define RISCV_INTERRUPT_VECTOR_EXTERNAL_TO_INDEX(x) ((x) - 2)
|
#define RISCV_INTERRUPT_VECTOR_EXTERNAL_TO_INDEX(x) ((x) - 2)
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX RISCV_INTERRUPT_VECTOR_EXTERNAL(RISCV_MAXIMUM_EXTERNAL_INTERRUPTS - 1)
|
#define BSP_INTERRUPT_VECTOR_MAX RISCV_INTERRUPT_VECTOR_EXTERNAL(RISCV_MAXIMUM_EXTERNAL_INTERRUPTS - 1)
|
||||||
|
|
||||||
void bsp_interrupt_set_affinity(
|
void bsp_interrupt_set_affinity(
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ void bsp_interrupt_report_with_plugin(
|
|||||||
"--------+----------------------------------+---------+------------+------------\n"
|
"--------+----------------------------------+---------+------------+------------\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
for (v = BSP_INTERRUPT_VECTOR_MIN; v <= BSP_INTERRUPT_VECTOR_MAX; ++v) {
|
for (v = 0; v <= BSP_INTERRUPT_VECTOR_MAX; ++v) {
|
||||||
e.vector = v;
|
e.vector = v;
|
||||||
rtems_interrupt_handler_iterate(
|
rtems_interrupt_handler_iterate(
|
||||||
v,
|
v,
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
#include <rtems/score/processormask.h>
|
#include <rtems/score/processormask.h>
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
|
#define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_INTERRUPT_VECTOR_MAX_STD
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_INTERRUPT_VECTOR_MAX_STD
|
||||||
|
|
||||||
/* No extra check is needed */
|
/* No extra check is needed */
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
#define LIBBSP_LEON2_IRQ_CONFIG_H
|
#define LIBBSP_LEON2_IRQ_CONFIG_H
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
|
#define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_INTERRUPT_VECTOR_MAX_STD
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_INTERRUPT_VECTOR_MAX_STD
|
||||||
|
|
||||||
/* No extra check is needed */
|
/* No extra check is needed */
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
#define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
|
#define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX_EXT 31 /* Extended IRQ controller */
|
#define BSP_INTERRUPT_VECTOR_MAX_EXT 31 /* Extended IRQ controller */
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_INTERRUPT_VECTOR_MAX_EXT
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_INTERRUPT_VECTOR_MAX_EXT
|
||||||
|
|
||||||
/* The check is different depending on IRQ controller, runtime detected */
|
/* The check is different depending on IRQ controller, runtime detected */
|
||||||
|
|||||||
@@ -38,7 +38,6 @@
|
|||||||
#include <rtems/irq.h>
|
#include <rtems/irq.h>
|
||||||
#include <rtems/irq-extension.h>
|
#include <rtems/irq-extension.h>
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 0x0
|
|
||||||
#define BSP_IRQ_VECTOR_NUMBER 34
|
#define BSP_IRQ_VECTOR_NUMBER 34
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX BSP_IRQ_VECTOR_NUMBER
|
#define BSP_INTERRUPT_VECTOR_MAX BSP_IRQ_VECTOR_NUMBER
|
||||||
|
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ static void Init(rtems_task_argument arg)
|
|||||||
test(cpu_count);
|
test(cpu_count);
|
||||||
|
|
||||||
/* Try to find the clock interrupt handler */
|
/* Try to find the clock interrupt handler */
|
||||||
for ( vec=BSP_INTERRUPT_VECTOR_MIN; vec<BSP_INTERRUPT_VECTOR_MAX; vec++ ) {
|
for ( vec = 0; vec < BSP_INTERRUPT_VECTOR_MAX; vec++ ) {
|
||||||
rtems_interrupt_handler_iterate(vec, locate_clock_interrupt_handler, &cih);
|
rtems_interrupt_handler_iterate(vec, locate_clock_interrupt_handler, &cih);
|
||||||
if ( cih.found )
|
if ( cih.found )
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user