From: Sascha Wildner Date: Sat, 4 Dec 2010 21:00:49 +0000 (+0100) Subject: Fix a typo and add PMAP_DEBUG to LINT. X-Git-Tag: v2.11.0~519 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/3558dcdaf03c61daeeadd16228d303030a05b4a4 Fix a typo and add PMAP_DEBUG to LINT. --- diff --git a/sys/config/LINT b/sys/config/LINT index fbe6f041ab..489477f711 100644 --- a/sys/config/LINT +++ b/sys/config/LINT @@ -2847,6 +2847,7 @@ options MBUF_DEBUG options METEOR_TEST_VIDEO options NETATALKDEBUG options PANIC_DEBUG +options PMAP_DEBUG options PSM_DEBUG=4 options SCSI_NCR_DEBUG options SCSI_NCR_MAX_SYNC=10000 diff --git a/sys/platform/pc32/i386/pmap.c b/sys/platform/pc32/i386/pmap.c index 916b8cc4f7..fe4ad9fca6 100644 --- a/sys/platform/pc32/i386/pmap.c +++ b/sys/platform/pc32/i386/pmap.c @@ -639,7 +639,7 @@ ptbase_assert(struct pmap *pmap) /* are we current address space or kernel? */ if (pmap == &kernel_pmap || frame == (((unsigned)PTDpde) & PG_FRAME)) return; - KKASSERT(frame == (*mycpu->gd_GDMAP1 & PG_FRAME)); + KKASSERT(frame == (*mdcpu->gd_GDMAP1 & PG_FRAME)); } #else