Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Oct 2001 23:24:40 -0700 (PDT)
From:      David Xu <davidx@viasoft.com.cn>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/31427: minor incorrect code in sys/i386/i386/pmap.c
Message-ID:  <200110220624.f9M6OeH85513@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110220624.f9M6OeH85513>