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:
Sebastian Huber
2021-06-18 07:37:18 +02:00
parent f3acb8bf03
commit af73b7b64b
61 changed files with 16 additions and 107 deletions

View File

@@ -35,8 +35,6 @@
* @{
*/
#define BSP_INTERRUPT_VECTOR_MIN 0
#ifdef ARM_MULTILIB_ARCH_V4
#define LPC24XX_IRQ_WDT 0
#define LPC24XX_IRQ_SOFTWARE 1

View File

@@ -91,7 +91,7 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
/* Use IRQ category */
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 */
addr [i] = i;