Module Name: src Committed By: skrll Date: Sun May 14 15:36:46 UTC 2017
Modified Files: src/sys/arch/mips/mips: pmap_machdep.c Log Message: Remove #if 0'ed old style cache handling in pmap_md_unmap_poolpage To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/arch/mips/mips/pmap_machdep.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_machdep.c diff -u src/sys/arch/mips/mips/pmap_machdep.c:1.17 src/sys/arch/mips/mips/pmap_machdep.c:1.18 --- src/sys/arch/mips/mips/pmap_machdep.c:1.17 Sun May 14 11:46:22 2017 +++ src/sys/arch/mips/mips/pmap_machdep.c Sun May 14 15:36:45 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap_machdep.c,v 1.17 2017/05/14 11:46:22 skrll Exp $ */ +/* $NetBSD: pmap_machdep.c,v 1.18 2017/05/14 15:36:45 skrll Exp $ */ /*- * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.17 2017/05/14 11:46:22 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.18 2017/05/14 15:36:45 skrll Exp $"); /* * Manages physical address maps. @@ -762,16 +762,7 @@ pmap_md_unmap_poolpage(vaddr_t va, size_ /* Note last mapped address for future color check */ pv->pv_va = va; -#if 0 - if (MIPS_CACHE_VIRTUAL_ALIAS) { - /* - * We've unmapped a poolpage. Its contents are irrelevant. - */ - KASSERT((va & PAGE_MASK) == 0); - mips_dcache_inv_range(va, PAGE_SIZE); - pv->pv_va = va; - } -#endif + KASSERT(pv->pv_pmap == NULL); KASSERT(pv->pv_next == NULL);