From a07dc2363e6e4992ac9be3a99fba3a1919ec301c Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 6 Mar 2022 18:26:14 +0800 Subject: [PATCH] c5471/c5471_irq.c: Fix error: '__builtin_memcpy' forming offset [4, 31] is out of the bounds [0, 4] of object '_svectors' with type 'int' Signed-off-by: Xiang Xiao --- arch/arm/src/c5471/c5471_irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/c5471/c5471_irq.c b/arch/arm/src/c5471/c5471_irq.c index aeb14ae328e..038f6e73846 100644 --- a/arch/arm/src/c5471/c5471_irq.c +++ b/arch/arm/src/c5471/c5471_irq.c @@ -59,7 +59,7 @@ volatile uint32_t *g_current_regs[1]; * because we know that correct IRAM area is 0xffc00000. */ -extern int _svectors; /* Type does not matter */ +extern up_vector_t _svectors[]; /* The C5471 has FLASH at the low end of memory. The rrload bootloaer will * catch all interrupts and re-vector them to vectors stored in IRAM. The @@ -126,7 +126,7 @@ static inline void up_ackfiq(unsigned int irq) static inline void up_vectorinitialize(void) { up_vector_t *src = g_vectorinittab; - up_vector_t *dest = (up_vector_t *)&_svectors; + up_vector_t *dest = _svectors; int i; for (i = 0; i < NVECTORS; i++)