Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Fix debug code in fault_fixup



details:   https://anonhg.NetBSD.org/src/rev/acb349182008
branches:  trunk
changeset: 328304:acb349182008
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Mar 30 15:55:08 2014 +0000

description:
Fix debug code in fault_fixup

diffstat:

 sys/arch/arm/arm32/pmap.c |  19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diffs (41 lines):

diff -r 907b27a34703 -r acb349182008 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sun Mar 30 15:54:37 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sun Mar 30 15:55:08 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.271 2014/03/30 15:50:51 matt Exp $  */
+/*     $NetBSD: pmap.c,v 1.272 2014/03/30 15:55:08 matt Exp $  */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -216,7 +216,7 @@
 #include <arm/locore.h>
 //#include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.271 2014/03/30 15:50:51 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.272 2014/03/30 15:55:08 matt Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -4572,13 +4572,16 @@
 #endif
 #endif
 #ifdef DDB
-               //extern int kernel_debug;
-
-               //if (kernel_debug & 2)
-               pmap_release_pmap_lock(pm);
-               KERNHIST_DUMP(maphist);
+               extern int kernel_debug;
+
+               if (kernel_debug & 2) {
+                       pmap_release_pmap_lock(pm);
+#ifdef UVMHIST
+                       KERNHIST_DUMP(maphist);
+#endif
                        cpu_Debugger();
-               pmap_acquire_pmap_lock(pm);
+                       pmap_acquire_pmap_lock(pm);
+               }
 #endif
        }
 #endif



Home | Main Index | Thread Index | Old Index