aarch64: Remove comparison with GIC-specific intid

GIC_INTID_SPURIOUS is a GIC-specific intid so it's not valid for custom
interrupt controllers. Rework a bit the logic by comparing the intid to
the maximum intid possible instead.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2021-03-12 12:21:09 +01:00 committed by Anas Nashif
commit 9dd2731d15

View file

@ -46,9 +46,9 @@ SECTION_FUNC(TEXT, _isr_wrapper)
bl z_soc_irq_get_active
#endif /* !CONFIG_ARM_CUSTOM_INTERRUPT_CONTROLLER */
/* Spurious */
cmp x0, #(GIC_INTID_SPURIOUS)
beq spurious_continue
/* IRQ out of bounds */
cmp x0, #(CONFIG_NUM_IRQS - 1)
b.hi spurious_continue
stp x0, xzr, [sp, #-16]!