freebsd-dev/sys/boot/i386/boot2
Warner Losh 2db4f48c6a Make both UFS1 and UFS2 fit on the same boot blocks. These are a
subset of Peter's patchs that are believed to be safe.

Makefile tweaks:
o -fomit-frame-pointer
o Change default to building both UFS1 and UFS2 bootblocks.

Lots of boot2 tweaks:
o lookup is only ever called with kname, so use it directly.
o inline memsize
o getstr are only ever called with cmd, so hardware that.
o tweaks to the parsing code to test after the conversion rather than
  before since we tested after anyways.
o eliminate support for %x in printf.
o eliminate a few bytes in printfs.
o Tweak the boot banner.
o eliminate support for wd and "  " devices (I might add wd back to
  keep bde happy).
o eliminate support for a few arguments.

This takes us from -162 bytes free to 67 bytes free.

I've tested this only on a few systems, so be careful when updating to
this change.

Submitted by: peter, imp, ian
2002-12-17 21:10:34 +00:00
..
boot1.s Employ the unused bytes after the disklabel in the second sector. This makes 2002-12-14 19:44:13 +00:00
boot1.S Employ the unused bytes after the disklabel in the second sector. This makes 2002-12-14 19:44:13 +00:00
boot2.c Make both UFS1 and UFS2 fit on the same boot blocks. These are a 2002-12-17 21:10:34 +00:00
lib.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Makefile Make both UFS1 and UFS2 fit on the same boot blocks. These are a 2002-12-17 21:10:34 +00:00
sio.s $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
sio.S $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00