svn commit: r278731 - stable/10/sys/arm/arm

Ian Lepore ian at FreeBSD.org
Fri Feb 13 23:32:04 UTC 2015


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)) {


More information about the svn-src-stable mailing list