svn commit: r305605 - head/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Thu Sep 8 12:39:05 UTC 2016
Author: andrew
Date: Thu Sep 8 12:39:03 2016
New Revision: 305605
URL: https://svnweb.freebsd.org/changeset/base/305605
Log:
Don't panic when we don't handle a userland exception, not all we may see
are currently handled.
Obtained from: ABT Systems Ltd
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/arm64/arm64/trap.c
Modified: head/sys/arm64/arm64/trap.c
==============================================================================
--- head/sys/arm64/arm64/trap.c Thu Sep 8 12:27:34 2016 (r305604)
+++ head/sys/arm64/arm64/trap.c Thu Sep 8 12:39:03 2016 (r305605)
@@ -401,9 +401,9 @@ do_el0_sync(struct trapframe *frame)
userret(td, frame);
break;
default:
- print_registers(frame);
- panic("Unknown userland exception %x esr_el1 %lx\n", exception,
- esr);
+ call_trapsignal(td, SIGBUS, BUS_OBJERR, (void *)frame->tf_elr);
+ userret(td, frame);
+ break;
}
}
More information about the svn-src-all
mailing list