summaryrefslogtreecommitdiffstats
path: root/sys/arm64
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2016-09-16 12:12:00 +0000
committerandrew <andrew@FreeBSD.org>2016-09-16 12:12:00 +0000
commitb628b3559d4f02357b5949907091105536a08a4c (patch)
treea7c2b10275dbc7ed13e98e218d8c7ebc44d9b1ad /sys/arm64
parentdddfacf75a4db48e5a557d2ca395fcf246f37b70 (diff)
downloadFreeBSD-src-b628b3559d4f02357b5949907091105536a08a4c.zip
FreeBSD-src-b628b3559d4f02357b5949907091105536a08a4c.tar.gz
MFC 305605:
Don't panic when we don't handle a userland exception, not all we may see are currently handled. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/arm64')
-rw-r--r--sys/arm64/arm64/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c
index ea932ed..255c188 100644
--- a/sys/arm64/arm64/trap.c
+++ b/sys/arm64/arm64/trap.c
@@ -394,9 +394,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;
}
}
OpenPOWER on IntegriCloud