svn commit: r295214 - head/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Wed Feb 3 17:00:20 UTC 2016
Author: andrew
Date: Wed Feb 3 17:00:19 2016
New Revision: 295214
URL: https://svnweb.freebsd.org/changeset/base/295214
Log:
Handle a misaligned stack pointer exception from userspace. The exception
still needs to be enabled, but this will help with testing.
Sponsored by: ABT Systems Ltd
Modified:
head/sys/arm64/arm64/trap.c
Modified: head/sys/arm64/arm64/trap.c
==============================================================================
--- head/sys/arm64/arm64/trap.c Wed Feb 3 16:44:06 2016 (r295213)
+++ head/sys/arm64/arm64/trap.c Wed Feb 3 17:00:19 2016 (r295214)
@@ -374,6 +374,10 @@ do_el0_sync(struct trapframe *frame)
case EXCP_UNKNOWN:
el0_excp_unknown(frame);
break;
+ case EXCP_SP_ALIGN:
+ call_trapsignal(td, SIGBUS, BUS_ADRALN, (void *)frame->tf_sp);
+ userret(td, frame);
+ break;
case EXCP_PC_ALIGN:
call_trapsignal(td, SIGBUS, BUS_ADRALN, (void *)frame->tf_elr);
userret(td, frame);
More information about the svn-src-head
mailing list