From owner-cvs-src-old@FreeBSD.ORG Fri Aug 6 07:32:49 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54E141065672 for ; Fri, 6 Aug 2010 07:32:49 +0000 (UTC) (envelope-from jchandra@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4184B8FC13 for ; Fri, 6 Aug 2010 07:32:49 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o767Wndc038719 for ; Fri, 6 Aug 2010 07:32:49 GMT (envelope-from jchandra@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o767Wn1X038718 for cvs-src-old@freebsd.org; Fri, 6 Aug 2010 07:32:49 GMT (envelope-from jchandra@repoman.freebsd.org) Message-Id: <201008060732.o767Wn1X038718@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jchandra@repoman.freebsd.org using -f From: "Jayachandran C." Date: Fri, 6 Aug 2010 07:32:33 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/mips/include pmap.h src/sys/mips/mips pmap.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2010 07:32:49 -0000 jchandra 2010-08-06 07:32:33 UTC FreeBSD src repository Modified files: sys/mips/include pmap.h sys/mips/mips pmap.c Log: SVN rev 210914 on 2010-08-06 07:32:33Z by jchandra Fix the issue reported by alc: pmap_page_wired_mappings() counts the number of pv entries for the specified page that have the pv entry wired flag set to TRUE. pmap_enter() correctly initializes this flag. However, pmap_change_wiring() doesn't update the corresponding pv entry flag, only the PTE. So, the count returned by pmap_page_wired_mappings() will sometimes be wrong. In the short term, the best fix would be to eliminate the pv entry flag and use only the PTE. That flag is wasting non-trivial memory. Remove pv_wired flag, and use PTE flag to count the wired mappings. Reviewed by: alc Revision Changes Path 1.17 +0 -1 src/sys/mips/include/pmap.h 1.72 +10 -5 src/sys/mips/mips/pmap.c