]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
arm64: entry: factor irq triage logic into macros
authorMarc Zyngier <maz@kernel.org>
Mon, 15 Mar 2021 11:56:27 +0000 (11:56 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 18 Jun 2021 09:07:19 +0000 (11:07 +0200)
commit7f13b08c804e5280e93507eb70b31f65a0c6642e
tree18b7d4d75f7a7269de35f32029d1785cf5464407
parenta41fd9cf71f9bdc908d031fd0b9f4b63576d2a38
arm64: entry: factor irq triage logic into macros

BugLink: https://bugs.launchpad.net/bugs/1931292
[ Upstream commit 9eb563cdabe1d583c262042d5d44cc256f644543 ]

In subsequent patches we'll allow an FIQ handler to be registered, and
FIQ exceptions will need to be triaged very similarly to IRQ exceptions.
So that we can reuse the existing logic, this patch factors the IRQ
triage logic out into macros that can be reused for FIQ.

The macros are named to follow the elX_foo_handler scheme used by the C
exception handlers. For consistency with other top-level exception
handlers, the kernel_entry/kernel_exit logic is not moved into the
macros. As FIQ will use a different C handler, this handler name is
provided as an argument to the macros.

There should be no functional change as a result of this patch.

Signed-off-by: Marc Zyngier <maz@kernel.org>
[Mark: rework macros, commit message, rebase before DAIF rework]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Hector Martin <marcan@marcan.st>
Cc: James Morse <james.morse@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210315115629.57191-5-mark.rutland@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm64/kernel/entry.S