arm64: irq: allow FIQs to be handled
On contemporary platforms we don't use FIQ, and treat any stray FIQ as a
fatal event. However, some platforms have an interrupt controller wired
to FIQ, and need to handle FIQ as part of regular operation.
So that we can support both cases dynamically, this patch updates the
FIQ exception handling code to operate the same way as the IRQ handling
code, with its own handle_arch_fiq handler. Where a root FIQ handler is
not registered, an unexpected FIQ exception will trigger the default FIQ
handler, which will panic() as today. Where a root FIQ handler is
registered, handling of the FIQ is deferred to that handler.
As el0_fiq_invalid_compat is supplanted by el0_fiq, the former is
removed. For !CONFIG_COMPAT builds we never expect to take an exception
from AArch32 EL0, so we keep the common el0_fiq_invalid handler.
Signed-off-by: Mark Rutland <firstname.lastname@example.org>
Tested-by: Hector Martin <email@example.com>
Cc: Catalin Marinas <firstname.lastname@example.org>
Cc: James Morse <email@example.com>
Cc: Marc Zyngier <firstname.lastname@example.org>
Cc: Thomas Gleixner <email@example.com>
Cc: Will Deacon <firstname.lastname@example.org>
3 files changed