[PATCH 08/17] arm64: entry: Split el0_sync_compat from el0_sync

Mark Rutland mark.rutland at arm.com
Wed Jan 8 10:56:25 PST 2020

Currently we treat el0_sync_compat as-if it's a portion of el0_sync,
which is unlike all the other exception entry stubs. Let's split it out
and give it it's own ENDPROC(), so that we can treat it as a separate
path entirely.

Reported-by: Mark Brown <broonie at kernel.org>
Signed-off-by: Mark Rutland <mark.rutland at arm.com>
Cc: Catalin Marinas <catalin.marinas at arm.com>
Cc: James Morse <james.morse at arm.com>
Cc: Will Deacon <will at kernel.org>
 arch/arm64/kernel/entry.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S
index 0c5117ef7c3c..2c3de577f720 100644
--- a/arch/arm64/kernel/entry.S
+++ b/arch/arm64/kernel/entry.S
@@ -539,6 +539,7 @@ el0_sync:
 	mov	x0, sp
 	bl	el0_sync_handler
 	b	ret_to_user
 	.align	6
@@ -547,7 +548,7 @@ el0_sync_compat:
 	mov	x0, sp
 	bl	el0_sync_compat_handler
 	b	ret_to_user
 	.align	6

More information about the linux-arm-kernel mailing list