Commit 73d6890f authored by Mark Brown's avatar Mark Brown Committed by Will Deacon
Browse files

arm64: kernel: Correct annotation of end of el0_sync



Commit 582f9583 ("arm64: entry: convert el0_sync to C") caused
the ENDPROC() annotating the end of el0_sync to be placed after the code
for el0_sync_compat. This replaced the previous annotation where it was
located after all the cases that are now converted to C, including after
the currently unannotated el0_irq_compat and el0_error_compat. Move the
annotation to the end of the function and add separate annotations for
the _compat ones.

Fixes: 582f9583 (arm64: entry: convert el0_sync to C)
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent b6a5c582
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -653,6 +653,7 @@ el0_sync:
	mov	x0, sp
	bl	el0_sync_handler
	b	ret_to_user
ENDPROC(el0_sync)

#ifdef CONFIG_COMPAT
	.align	6
@@ -661,16 +662,18 @@ el0_sync_compat:
	mov	x0, sp
	bl	el0_sync_compat_handler
	b	ret_to_user
ENDPROC(el0_sync)
ENDPROC(el0_sync_compat)

	.align	6
el0_irq_compat:
	kernel_entry 0, 32
	b	el0_irq_naked
ENDPROC(el0_irq_compat)

el0_error_compat:
	kernel_entry 0, 32
	b	el0_error_naked
ENDPROC(el0_error_compat)
#endif

	.align	6