From owner-cvs-all Thu Jan 17 14:39:27 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BAF5037B402; Thu, 17 Jan 2002 14:39:19 -0800 (PST) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0HMdJO02908; Thu, 17 Jan 2002 14:39:19 -0800 (PST) (envelope-from iedowse) Message-Id: <200201172239.g0HMdJO02908@freefall.freebsd.org> From: Ian Dowse Date: Thu, 17 Jan 2002 14:39:19 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/boot/i386/boot2 boot2.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG iedowse 2002/01/17 14:39:19 PST Modified files: sys/boot/i386/boot2 boot2.c Log: Oops, the previous revision (1.35) broke booting from floppies because the buffers we use could end up spanning a 64k boundary. Unfortunately it causes too much bloat (228 -> 72 bytes free) to just reinstate the old malloc() function. Instead, define a structure that contains all 4 buffers which must not cross 64k boundaries. We allocate a 64k-aligned instance in main() using the magic that was in the old boot2 malloc() function. This brings the free space down to 168 bytes, but that is still better than it was before revision 1.35 (136 bytes). Reported by: Mike Brancato Pointy-hat to: iedowse Revision Changes Path 1.36 +18 -6 src/sys/boot/i386/boot2/boot2.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message