Module Name: src Committed By: matt Date: Thu Dec 1 23:53:54 UTC 2011
Modified Files: src/sys/arch/mips/mips [matt-nb5-mips64]: pmap.c Log Message: don't compare pfn against phys_addr. To generate a diff of this commit: cvs rdiff -u -r1.179.16.32 -r1.179.16.33 src/sys/arch/mips/mips/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mips/mips/pmap.c diff -u src/sys/arch/mips/mips/pmap.c:1.179.16.32 src/sys/arch/mips/mips/pmap.c:1.179.16.33 --- src/sys/arch/mips/mips/pmap.c:1.179.16.32 Thu Dec 1 02:58:23 2011 +++ src/sys/arch/mips/mips/pmap.c Thu Dec 1 23:53:54 2011 @@ -692,7 +692,7 @@ pmap_steal_memory(vsize_t size, vaddr_t } #ifndef _LP64 - if (seg->avail_start + npgs > MIPS_PHYS_MASK + 1) { + if (seg->avail_start + npgs > atop(MIPS_PHYS_MASK + 1)) { aprint_debug("%s: seg %u: not enough in KSEG0 for %u pages\n", __func__, bank, npgs); continue;