From owner-cvs-src-old@FreeBSD.ORG Tue Jan 20 07:24:33 2009 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 BA1FD1065677 for ; Tue, 20 Jan 2009 07:24:33 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A777E8FC1C for ; Tue, 20 Jan 2009 07:24:33 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0K7OX4l025761 for ; Tue, 20 Jan 2009 07:24:33 GMT (envelope-from alc@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0K7OXsA025760 for cvs-src-old@freebsd.org; Tue, 20 Jan 2009 07:24:33 GMT (envelope-from alc@repoman.freebsd.org) Message-Id: <200901200724.n0K7OXsA025760@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to alc@repoman.freebsd.org using -f From: Alan Cox Date: Tue, 20 Jan 2009 07:24:28 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/amd64/include pmap.h 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: Tue, 20 Jan 2009 07:24:34 -0000 alc 2009-01-20 07:24:28 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/amd64/amd64 pmap.c sys/amd64/include pmap.h Log: SVN rev 187465 on 2009-01-20 07:24:28Z by alc MFC r179917,180333,180373,180378 Prepare for a larger kernel virtual address space. Specifically, once KERNBASE and VM_MIN_KERNEL_ADDRESS are no longer the same, the physical memory allocated during bootstrap will be offset from the low-end of the kernel's page table. Change create_pagetables() and pmap_init() so that many fewer page table pages have to be preallocated by create_pagetables(). Eliminate pmap_growkernel()'s dependence on create_pagetables() preallocating page directory pages from VM_MIN_KERNEL_ADDRESS through the end of the kernel's bss. Specifically, the dependence was in pmap_growkernel()'s one- time initialization of kernel_vm_end, not in its main body. (I could not, however, resist the urge to optimize the main body.) Reduce the number of preallocated page directory pages to just those needed to support NKPT page table pages. (In fact, this allows me to revert a couple of my earlier changes to create_pagetables().) Fix lines that are too long in pmap_growkernel() by substituting shorter but equivalent expressions. Revision Changes Path 1.590.2.12 +29 -20 src/sys/amd64/amd64/pmap.c 1.138.2.3 +1 -2 src/sys/amd64/include/pmap.h