arm64: isr_wrapper: fixup out of bounds for large number of irqs
In case we enable a large number of IRQs, like when enabling LPIs using interrupts > 8192, we hit an assembler error where the immediate value is too large. Copy the IRQ number into x1 to permit using a large IRQ number. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
a133bf8821
commit
078113982f
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,8 @@ SECTION_FUNC(TEXT, _isr_wrapper)
|
|||
#endif /* !CONFIG_ARM_CUSTOM_INTERRUPT_CONTROLLER */
|
||||
|
||||
/* IRQ out of bounds */
|
||||
cmp x0, #(CONFIG_NUM_IRQS - 1)
|
||||
mov x1, #(CONFIG_NUM_IRQS - 1)
|
||||
cmp x0, x1
|
||||
b.hi spurious_continue
|
||||
|
||||
stp x0, xzr, [sp, #-16]!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue