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 !DDB build.



details:   https://anonhg.NetBSD.org/src/rev/392ae0f058a3
branches:  trunk
changeset: 786796:392ae0f058a3
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat May 11 10:15:43 2013 +0000

description:
Fix !DDB build.

diffstat:

 sys/arch/arm/arm32/pmap.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r d28a598dde27 -r 392ae0f058a3 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sat May 11 10:15:10 2013 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sat May 11 10:15:43 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.254 2013/03/29 13:27:08 matt Exp $  */
+/*     $NetBSD: pmap.c,v 1.255 2013/05/11 10:15:43 skrll Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -212,7 +212,7 @@
 #include <arm/cpuconf.h>
 #include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.254 2013/03/29 13:27:08 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.255 2013/05/11 10:15:43 skrll Exp $");
 
 #ifdef PMAP_DEBUG
 
@@ -4126,7 +4126,6 @@
         */
        if (rv == 0 && pm->pm_l1->l1_domain_use_count == 1) {
                extern int last_fault_code;
-               extern int kernel_debug;
                printf("fixup: pm %p, va 0x%lx, ftype %d - nothing to do!\n",
                    pm, va, ftype);
                printf("fixup: l2 %p, l2b %p, ptep %p, pl1pd %p\n",
@@ -4134,6 +4133,8 @@
                printf("fixup: pte 0x%x, l1pd 0x%x, last code 0x%x\n",
                    pte, l1pd, last_fault_code);
 #ifdef DDB
+               extern int kernel_debug;
+
                if (kernel_debug & 2)
                        Debugger();
 #endif



Home | Main Index | Thread Index | Old Index