From 4ec9758034dea13f498f0876d5e1c140e36043ef Mon Sep 17 00:00:00 2001 From: Fabien Chereau Date: Thu, 28 Jan 2016 15:24:56 +0100 Subject: [PATCH] irq: fix declared _sw_isr_table size on ARC On ARC, the _sw_isr_table has an actual size of CONFIG_NUM_IRQS - 16 because the 16 first IRQ are reserved. This patch has no impact on the generated binary but allows the debugger to display valid information instead of displaying 16 false entries containing garbage. Change-Id: Iae2756c1bc333dc822e9f80c2115fba6521792a2 Signed-off-by: Fabien Chereau --- include/sw_isr_table.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/sw_isr_table.h b/include/sw_isr_table.h index 8206231f6fd..770be085b91 100644 --- a/include/sw_isr_table.h +++ b/include/sw_isr_table.h @@ -41,7 +41,12 @@ struct _IsrTableEntry { typedef struct _IsrTableEntry _IsrTableEntry_t; +#ifdef CONFIG_ARC +extern _IsrTableEntry_t _sw_isr_table[CONFIG_NUM_IRQS - 16]; +#else extern _IsrTableEntry_t _sw_isr_table[CONFIG_NUM_IRQS]; +#endif + #endif /* _ASMLANGUAGE */ #ifdef __cplusplus