summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2015-07-09 13:07:12 +0000
committerandrew <andrew@FreeBSD.org>2015-07-09 13:07:12 +0000
commite561c6cbca6113744ccff288960bfb86dfd76f95 (patch)
treec970a58f8586edf19cf0f31974368327a4b1c9e9
parent802b17ef784664c58aebbae46c13092956cd908c (diff)
downloadFreeBSD-src-e561c6cbca6113744ccff288960bfb86dfd76f95.zip
FreeBSD-src-e561c6cbca6113744ccff288960bfb86dfd76f95.tar.gz
Add logging of synchronous exceptions.
Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/arm64/arm64/trap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c
index 500dce3..89c104f 100644
--- a/sys/arm64/arm64/trap.c
+++ b/sys/arm64/arm64/trap.c
@@ -258,6 +258,10 @@ do_el1h_sync(struct trapframe *frame)
(exception == EXCP_DATA_ABORT && ((esr & ISS_DATA_ISV) == 0)),
("Invalid instruction length in exception"));
+ CTR4(KTR_TRAP,
+ "do_el1_sync: curthread: %p, esr %lx, elr: %lx, frame: %p",
+ curthread, esr, frame->tf_elr, frame);
+
switch(exception) {
case EXCP_FP_SIMD:
case EXCP_TRAP_FP:
@@ -301,6 +305,10 @@ do_el0_sync(struct trapframe *frame)
esr = READ_SPECIALREG(esr_el1);
exception = ESR_ELx_EXCEPTION(esr);
+ CTR4(KTR_TRAP,
+ "do_el0_sync: curthread: %p, esr %lx, elr: %lx, frame: %p",
+ curthread, esr, frame->tf_elr, frame);
+
switch(exception) {
case EXCP_FP_SIMD:
case EXCP_TRAP_FP:
OpenPOWER on IntegriCloud