Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jul 2015 13:07:12 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285315 - head/sys/arm64/arm64
Message-ID:  <201507091307.t69D7C7c039371@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507091307.t69D7C7c039371>