From 3558dcdaf03c61daeeadd16228d303030a05b4a4 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sat, 4 Dec 2010 22:00:49 +0100 Subject: [PATCH] Fix a typo and add PMAP_DEBUG to LINT. --- sys/config/LINT | 1 + sys/platform/pc32/i386/pmap.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.41.0