From e0c6c1d1fd53ee7757c7e3ea1f88add7356e7e92 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Thu, 8 Sep 2016 12:39:03 +0000 Subject: [PATCH] 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 --- sys/arm64/arm64/trap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c index b2ca455ea749..bc191056f13a 100644 --- a/sys/arm64/arm64/trap.c +++ b/sys/arm64/arm64/trap.c @@ -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; } }