Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Dec 2002 20:31:45 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Peter Wemm <peter@wemm.org>
Cc:        Poul-Henning Kamp <phk@FreeBSD.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/sys/boot/i386/boot2 Makefile boot1.s 
Message-ID:  <20021215200548.T10706-100000@gamplex.bde.org>
In-Reply-To: <20021215005215.2476D2A7EA@canning.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021215200548.T10706-100000>