svn commit: r285315 - head/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Thu Jul 9 13:07:13 UTC 2015
Author: andrew
Date: Thu Jul 9 13:07:12 2015
New Revision: 285315
URL: https://svnweb.freebsd.org/changeset/base/285315
Log:
Add logging of synchronous exceptions.
Obtained from: ABT Systems Ltd
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 Jul 9 12:56:09 2015 (r285314)
+++ head/sys/arm64/arm64/trap.c Thu Jul 9 13:07:12 2015 (r285315)
@@ -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:
More information about the svn-src-all
mailing list