From nobody@FreeBSD.org  Sun Oct 21 23:24:41 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 58A0637B403
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <davidx@viasoft.com.cn>
To: freebsd-gnats-submit@FreeBSD.org
Subject: minor incorrect code in sys/i386/i386/pmap.c
X-Send-Pr-Version: www-1.0

>Number:         31427
>Category:       i386
>Synopsis:       [pmap] [patch] minor incorrect code in sys/i386/i386/pmap.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    davidxu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 21 23:30:01 PDT 2001
>Closed-Date:    Wed Oct 18 11:47:40 GMT 2006
>Last-Modified:  Wed Oct 18 11:47:40 GMT 2006
>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:
Responsible-Changed-From-To: freebsd-bugs->davidxu 
Responsible-Changed-By: johan 
Responsible-Changed-When: Thu Jul 29 13:56:22 GMT 2004 
Responsible-Changed-Why:  
Let David handle his own PRs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=31427 
State-Changed-From-To: open->closed 
State-Changed-By: davidxu 
State-Changed-When: Wed Oct 18 11:44:58 UTC 2006 
State-Changed-Why:  
This is no longer needed for FreeBSD 6 and -CURRENT. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=31427 
>Unformatted:
