Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 2015 23:32:04 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r278731 - stable/10/sys/arm/arm
Message-ID:  <201502132332.t1DNW4YC065557@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Fri Feb 13 23:32:03 2015
New Revision: 278731
URL: https://svnweb.freebsd.org/changeset/base/278731

Log:
  MFC r277523:  Add last_fault_code when DEBUG is defined.

Modified:
  stable/10/sys/arm/arm/trap-v6.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/arm/arm/trap-v6.c
==============================================================================
--- stable/10/sys/arm/arm/trap-v6.c	Fri Feb 13 23:30:48 2015	(r278730)
+++ stable/10/sys/arm/arm/trap-v6.c	Fri Feb 13 23:32:03 2015	(r278731)
@@ -67,6 +67,10 @@ __FBSDID("$FreeBSD$");
 
 extern char fusubailout[];
 
+#ifdef DEBUG
+int last_fault_code;	/* For the benefit of pmap_fault_fixup() */
+#endif
+
 struct ksig {
 	int sig;
 	u_long code;
@@ -457,6 +461,10 @@ abort_handler(struct trapframe *tf, int 
 	if (prefetch)
 		ftype |= VM_PROT_EXECUTE;
 
+#ifdef DEBUG
+	last_fault_code = fsr;
+#endif
+
 #ifndef ARM_NEW_PMAP
 	if (pmap_fault_fixup(vmspace_pmap(td->td_proc->p_vmspace), va, ftype,
 	    usermode)) {



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