From owner-cvs-src@FreeBSD.ORG Mon Dec 19 09:00:12 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 C6B5916A41F; Mon, 19 Dec 2005 09:00:12 +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 572E243D66; Mon, 19 Dec 2005 09:00:12 +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 jBJ90Cte076807; Mon, 19 Dec 2005 09:00:12 GMT (envelope-from sobomax@repoman.freebsd.org) Received: (from sobomax@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jBJ90B3k076806; Mon, 19 Dec 2005 09:00:11 GMT (envelope-from sobomax) Message-Id: <200512190900.jBJ90B3k076806@repoman.freebsd.org> From: Maxim Sobolev Date: Mon, 19 Dec 2005 09:00:11 +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 Makefile biosdisk.c biospnp.c biossmap.c i386_copy.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: Mon, 19 Dec 2005 09:00:13 -0000 sobomax 2005-12-19 09:00:11 UTC FreeBSD src repository Modified files: sys/boot/i386/libi386 Makefile biosdisk.c biospnp.c biossmap.c i386_copy.c Log: Long-long time ago, when the trees were large and memory expensive amount of memory directly available to loader(8) and friends was limited to 640K on i386. Those times have passed long time ago and now loader(8) can directly access up to 4GB of RAM at least theoretically. At the same time, there are several places where it's assumed that malloc() will only allocate memory within first megabyte. Remove that assumption by allocating appropriate bounce buffers for BIOS calls on stack where necessary. This allows using memory above first megabyte for heap if necessary. Revision Changes Path 1.39 +3 -0 src/sys/boot/i386/libi386/Makefile 1.46 +10 -17 src/sys/boot/i386/libi386/biosdisk.c 1.10 +1 -1 src/sys/boot/i386/libi386/biospnp.c 1.4 +3 -2 src/sys/boot/i386/libi386/biossmap.c 1.11 +6 -22 src/sys/boot/i386/libi386/i386_copy.c