From owner-freebsd-bugs Sun Oct 21 23:30: 5 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 47CC237B40C for ; Sun, 21 Oct 2001 23:30:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9M6U1M87571; Sun, 21 Oct 2001 23:30:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 58A0637B403 for ; Sun, 21 Oct 2001 23:24:40 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9M6OeH85513; Sun, 21 Oct 2001 23:24:40 -0700 (PDT) (envelope-from nobody) Message-Id: <200110220624.f9M6OeH85513@freefall.freebsd.org> Date: Sun, 21 Oct 2001 23:24:40 -0700 (PDT) From: David Xu To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: i386/31427: minor incorrect code in sys/i386/i386/pmap.c Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31427 >Category: i386 >Synopsis: minor incorrect code in sys/i386/i386/pmap.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 21 23:30:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: David Xu >Release: FreeBSD 4.4-stable >Organization: Viasoft >Environment: FreeBSD cvs.viasoft.com.cn 4.4-STABLE FreeBSD 4.4-STABLE #6: Sat Sep 29 16:56:38 CST 2001 root@cvs.viasoft.com.cn:/usr/src/sys/compile/xu i386 >Description: pmap_init does not correctly use MINPV, patch is attached. >How-To-Repeat: >Fix: --- pmap.c.orig Mon Oct 22 13:52:13 2001 +++ pmap.c Mon Oct 22 13:52:25 2001 @@ -503,7 +503,7 @@ pvinit = (struct pv_entry *) kmem_alloc(kernel_map, initial_pvs * sizeof (struct pv_entry)); zbootinit(pvzone, "PV ENTRY", sizeof (struct pv_entry), pvinit, - vm_page_array_size); + initial_pvs); /* * Now it is safe to enable pv_table recording. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message