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

Reply via email to