From b70cafbd9fabe74d3e93a58a83fdee76ecaa6543 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 28 Nov 2007 19:37:24 +0000 Subject: Don't complain about removing wired pages; this is expected to happen with ftruncate(2) on mlock(2)'ed pages. --- sys/arch/sparc64/sparc64/pmap.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sys') diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c index ac32d5b2211..d1e8dad3614 100644 --- a/sys/arch/sparc64/sparc64/pmap.c +++ b/sys/arch/sparc64/sparc64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.46 2007/10/27 22:20:16 martin Exp $ */ +/* $OpenBSD: pmap.c,v 1.47 2007/11/28 19:37:23 kettenis Exp $ */ /* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */ #undef NO_VCACHE /* Don't forget the locked TLB in dostart */ /* @@ -2964,12 +2964,6 @@ pmap_page_protect(pg, prot) pv->pv_va |= PV_REF; if (data & (TLB_MODIFY)) pv->pv_va |= PV_MOD; - if (data & TLB_TSB_LOCK) { -#ifdef DIAGNOSTIC - printf("pmap_page_protect: Removing wired page pm %p va %p\n", - (void *)(u_long)pv->pv_pmap, (void *)(u_long)pv->pv_va); -#endif - } if (pseg_set(pv->pv_pmap, pv->pv_va&PV_VAMASK, 0, 0)) { printf("pmap_page_protect: gotten pseg empty!\n"); Debugger(); -- cgit v1.2.3