vector table should have dimension NR_IRQS, not NR_IRQS+1

This commit is contained in:
Sagitta Li 2016-09-22 07:56:12 -06:00 committed by Gregory Nutt
parent cec2b61592
commit 9fa1024eef
3 changed files with 3 additions and 2 deletions

View File

@ -441,6 +441,7 @@ static ssize_t proc_status(FAR struct proc_file_s *procfile,
#ifdef CONFIG_SCHED_HAVE_PARENT
group = tcb->group;
DEBUGASSERT(group);
#ifdef HAVE_GROUPID
linesize = snprintf(procfile->line, STATUS_LINELEN, "%-12s%d\n", "Group:",
group->tg_pgid);

View File

@ -58,7 +58,7 @@
* occurrence of an interrupt.
*/
extern FAR xcpt_t g_irqvector[NR_IRQS+1];
extern FAR xcpt_t g_irqvector[NR_IRQS];
#ifdef CONFIG_SMP
/* This is the spinlock that enforces critical sections when interrupts are

View File

@ -47,7 +47,7 @@
* Public Data
****************************************************************************/
FAR xcpt_t g_irqvector[NR_IRQS+1];
FAR xcpt_t g_irqvector[NR_IRQS];
/****************************************************************************
* Public Functions