]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: entry: consolidate EL1 exception returns
authorMark Rutland <mark.rutland@arm.com>
Mon, 7 Jun 2021 09:46:14 +0000 (10:46 +0100)
committerWill Deacon <will@kernel.org>
Mon, 7 Jun 2021 10:35:55 +0000 (11:35 +0100)
commit40f2860785c92d1d7446002b44d2dc312fa32254
tree9a73898fd1d1960ade6a6c566dda99b06c6cda05
parent60623a71148c06d1f0d1a76e616ba13c91719719
arm64: entry: consolidate EL1 exception returns

Following the example of ret_to_user, let's consolidate all the EL1
return paths with a ret_to_kernel helper, rather than each entry point
having its own copy of the return code.

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

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210607094624.34689-11-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/entry.S