svn commit: r277523 - head/sys/arm/arm

Oleksandr Tymoshenko gonzo at FreeBSD.org
Thu Jan 22 03:33:53 UTC 2015


Author: gonzo
Date: Thu Jan 22 03:33:51 2015
New Revision: 277523
URL: https://svnweb.freebsd.org/changeset/base/277523

Log:
  Add last_fault_code used in pmap-v6.c if kernel is compiled with "option DEBUG"

Modified:
  head/sys/arm/arm/trap-v6.c

Modified: head/sys/arm/arm/trap-v6.c
==============================================================================
--- head/sys/arm/arm/trap-v6.c	Thu Jan 22 03:32:04 2015	(r277522)
+++ head/sys/arm/arm/trap-v6.c	Thu Jan 22 03:33:51 2015	(r277523)
@@ -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-head mailing list