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)) {
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to