From owner-cvs-all Sun Dec 15 1:31: 6 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9692537B401; Sun, 15 Dec 2002 01:31:04 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0861143EA9; Sun, 15 Dec 2002 01:31:03 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id UAA06991; Sun, 15 Dec 2002 20:30:55 +1100 Date: Sun, 15 Dec 2002 20:31:45 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Peter Wemm Cc: Poul-Henning Kamp , , Subject: Re: cvs commit: src/sys/boot/i386/boot2 Makefile boot1.s In-Reply-To: <20021215005215.2476D2A7EA@canning.wemm.org> Message-ID: <20021215200548.T10706-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Sat, 14 Dec 2002, Peter Wemm wrote: > Poul-Henning Kamp wrote: > > Modified files: > > sys/boot/i386/boot2 Makefile boot1.s > > Log: > > Employ the unused bytes after the disklabel in the second sector. This mak > es > > it possible to make UFS1_ONLY and UFS2_ONLY versions which fit inside the > > traditional 16 sectors. > > > > UFS1_AND_UFS2 still needs another 150 bytes to work, and that is probably > > not within our reach, ever. > > That sounds like a challenge! :-) Yeah, should be easy :-). > http://people.freebsd.org/~peter/boot2.diff > > That is a WIP and COMPLETELY UNTESTED patch to turn on UFS1_AND_UFS2 > and it ends up with 7 bytes free. I wouldn't install this on anything > but a spare floppy disk yet. Please remove the alignment hacks (Makefile rev.1.25) while you are there. Breakage of -[fm]align-* seems to have been fixed in gcc, so the hacks make no difference except to reduce the size of boot2.o's data by 3 bytes (I think the 3 bytes is wasted at link time). > I have a couple of nastier versions that have ~30+ bytes free but > I'm pretty sure I broke the pathname lookups there. And for that matter, > I'm not even sure if -fomit-frame-pointer is compatable with -mrtd... If > not, oh well. :-) It should be compatible. -mrtd and -fomit-frame-pointer are often (space) pessimizations. It's interesting that they are both optimizations for boot2. I use my version biosboot and don't really care about this except I had to do similar hacks to debloat the ufs1 support so that it fits again. I haven't tried fitting ufs2. biosboot has more features so it has 1-2K less to spare for ufs2 than boot2 did. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message