From owner-cvs-src@FreeBSD.ORG Wed Dec 21 02:18:00 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0513016A41F; Wed, 21 Dec 2005 02:18:00 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AE4E43D5F; Wed, 21 Dec 2005 02:17:59 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jBL2HxFh057046; Wed, 21 Dec 2005 02:17:59 GMT (envelope-from sobomax@repoman.freebsd.org) Received: (from sobomax@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jBL2HxJn057045; Wed, 21 Dec 2005 02:17:59 GMT (envelope-from sobomax) Message-Id: <200512210217.jBL2HxJn057045@repoman.freebsd.org> From: Maxim Sobolev Date: Wed, 21 Dec 2005 02:17:59 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/boot/i386/libi386 biosmem.c i386_copy.c libi386.h src/sys/boot/i386/loader main.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 02:18:00 -0000 sobomax 2005-12-21 02:17:58 UTC FreeBSD src repository Modified files: sys/boot/i386/libi386 biosmem.c i386_copy.c libi386.h sys/boot/i386/loader main.c Log: For the cases when loading bzip2-compressed kernels enabled use last 3MB of physical memory for heap instead of range between 1MB and 4MB. This makes this feature working with PAE and amd64 kernels, which are loaded at 2MB. Teach i386_copyin() to avoid using range allocated by heap in such case, so that it won't trash heap in the low memory conditions. This should make loading bzip2-compressed kernels/modules/mfs images generally useable, so that re@ team is welcome to evaluate merits of using this feature in the installation CDs. Valuable suggestions by: jhb Revision Changes Path 1.8 +2 -2 src/sys/boot/i386/libi386/biosmem.c 1.12 +1 -1 src/sys/boot/i386/libi386/i386_copy.c 1.23 +4 -1 src/sys/boot/i386/libi386/libi386.h 1.36 +3 -2 src/sys/boot/i386/loader/main.c