Skip to contentSkip to conversation

Aarch32 user space PC alignment exception

PATCH Applied Mark Salyzyn 2 participants 2 messages Oct 13, 2015 – Oct 16, 2015 arm64

lore
Share & tools
lore
#0 lore raw

armv7 does not have a PC alignment exception. armv8 Aarch32 user space however can produce a PC alignment exception. Add handler so the we do not dump an unexpected stack trace in the logs.

---
 arch/arm64/kernel/entry.S | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/kernel/entry.S +2 -0
index 4306c93..7ed3d75 100644
@@ -430,6 +430,8 @@ el0_sync_compat:
 	b.eq	el0_fpsimd_acc
 	cmp	x24, #ESR_ELx_EC_FP_EXC32	// FP/ASIMD exception
 	b.eq	el0_fpsimd_exc
+	cmp	x24, #ESR_ELx_EC_PC_ALIGN	// pc alignment exception
+	b.eq	el0_sp_pc
 	cmp	x24, #ESR_ELx_EC_UNKNOWN	// unknown exception in EL0
 	b.eq	el0_undef
 	cmp	x24, #ESR_ELx_EC_CP15_32	// CP15 MRC/MCR trap
Signature · 1 line
2.6.0.rc2.230.g3dd15c0
maintainer Applied
#1 lore raw
Quoted 6 lines · Mark Salyzyn

armv7 does not have a PC alignment exception. armv8 Aarch32 user space however can produce a PC alignment exception. Add handler so the we do not dump an unexpected stack trace in the logs.

Queued for 4.4. Thanks.

Signature · 1 line
Catalin