Mark Rutland f8049488e7 arm64: entry: add a call_on_irq_stack helper
When handling IRQ/FIQ exceptions the entry assembly may transition from
a task's stack to a CPU's IRQ stack (and IRQ shadow call stack).

In subsequent patches we want to migrate the IRQ/FIQ triage logic to C,
and as we want to perform some actions on the task stack (e.g. EL1
preemption), we need to switch stacks within the C handler. So that we
can do so, this patch adds a helper to call a function on a CPU's IRQ
stack (and shadow stack as appropriate).

Subsequent patches will make use of the new helper function.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Cc: James Morse <james.morse@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210607094624.34689-7-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
2021-06-07 11:35:55 +01:00
..
2021-04-26 10:25:03 -07:00
2021-05-01 10:14:08 -07:00
2019-07-08 09:54:55 -07:00
2021-03-22 12:45:13 +00:00
2020-06-01 15:18:27 -07:00
2021-04-08 18:45:16 +01:00
2020-09-07 15:00:52 +01:00
2021-03-24 20:19:30 +00:00
2021-02-04 13:59:49 +00:00
2020-05-01 16:28:59 +01:00
2021-01-07 18:06:52 -05:00
2019-04-23 18:01:57 +01:00
2021-04-16 16:10:36 -07:00
2021-03-24 20:19:30 +00:00