arch/arm: Fix an error found in build testing.
This commit is contained in:
parent
8bd9cfe038
commit
49ec86ddb1
@ -159,8 +159,8 @@
|
||||
#define STM32_IRQ_LPTIMER1 (STM32_IRQ_FIRST+93) /* 93: LP Timer1 global interrupt */
|
||||
|
||||
#define STM32_IRQ_SDMMC2 (STM32_IRQ_FIRST+103) /* 103: SDMMC2 global interrupt */
|
||||
#define NR_INTERRUPTS 103
|
||||
|
||||
#define NR_INTERRUPTS 103
|
||||
#define NR_VECTORS (STM32_IRQ_FIRST+NR_INTERRUPTS)
|
||||
|
||||
/* EXTI interrupts (Do not use IRQ numbers) */
|
||||
|
@ -189,7 +189,7 @@
|
||||
#define XMC4_IRQ_RESVD111 (XMC4_IRQ_FIRST+111) /* 111: Reserved */
|
||||
|
||||
#define NR_INTERRUPTS 112 /* 112 Non core IRQs*/
|
||||
#define NR_VECTORS (XMC4_IRQ_FIRST+NR_INTERRUPTS) /* 118 vectors */
|
||||
#define NR_VECTORS (XMC4_IRQ_FIRST+NR_INTERRUPTS) /* 128 vectors */
|
||||
|
||||
/* GPIO IRQ interrupts -- To be provided */
|
||||
|
||||
|
@ -44,6 +44,7 @@
|
||||
#include <arch/irq.h>
|
||||
|
||||
#include "up_internal.h"
|
||||
#include "chip.h"
|
||||
|
||||
#ifdef CONFIG_ARCH_RAMVECTORS
|
||||
|
||||
@ -57,7 +58,7 @@
|
||||
* table.
|
||||
*/
|
||||
|
||||
#define ARMV7M_VECTAB_SIZE (NR_VECTORS + 16)
|
||||
#define ARMV7M_VECTAB_SIZE (ARMV7M_PERIPHERAL_INTERRUPTS + 16)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
|
@ -72,7 +72,7 @@ int up_ramvec_attach(int irq, up_vector_t vector)
|
||||
|
||||
irqinfo("%s IRQ%d\n", vector ? "Attaching" : "Detaching", irq);
|
||||
|
||||
if ((unsigned)irq < NR_VECTORS)
|
||||
if ((unsigned)irq < ARMV7M_VECTAB_SIZE)
|
||||
{
|
||||
irqstate_t flags;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user