Bug 31427

Summary: [pmap] [patch] minor incorrect code in sys/i386/i386/pmap.c
Product: Base System Reporter: davidx <davidx>
Component: i386Assignee: David Xu <davidxu>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description davidx 2001-10-22 07:30:01 UTC
pmap_init does not correctly use MINPV, patch is attached.

Fix: 

/*
         * Now it is safe to enable pv_table recording.--3ytpCKUpuheupBcnXAhRZDAhy2N4eEtofOeGNiO3fukrFxZM
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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);
Comment 1 Johan Karlsson freebsd_committer freebsd_triage 2004-07-29 14:56:22 UTC
Responsible Changed
From-To: freebsd-bugs->davidxu

Let David handle his own PRs.
Comment 2 David Xu freebsd_committer freebsd_triage 2006-10-18 12:44:58 UTC
State Changed
From-To: open->closed

This is no longer needed for FreeBSD 6 and -CURRENT.