gen_isr_tables: apply offset to irq parameter

The interrupts would be placed at incorrect offsets on systems where
some interrupt vectors are reserved for exceptions, such as ARC.

Change-Id: I5b1f00eb9e8aecb84ae66e3d0461a734ffb5fbe6
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-02-13 09:56:25 -08:00
commit 3944d8313e
3 changed files with 24 additions and 11 deletions

View file

@ -42,10 +42,8 @@
SECTION_PROLOGUE(.intList,,)
{
KEEP(*(.irq.spurious))
KEEP(*(.irq.handler))
KEEP(*(.irq_info))
LONG((__INT_LIST_END__ - __INT_LIST_START__) / __ISR_LIST_SIZEOF)
KEEP(*(.irq.tablesize))
__INT_LIST_START__ = .;
KEEP(*(.intList))
__INT_LIST_END__ = .;