freebsd-dev/sys/boot/i386
Ian Dowse 870fb18bc1 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 <funnyguy@digitalsmackdown.net>
Pointy-hat to:	iedowse
2002-01-17 22:39:19 +00:00
..
boot0 Unrevert revision 1.12. Revision 1.14 backed this out saying it was 2002-01-10 21:40:33 +00:00
boot2 Oops, the previous revision (1.35) broke booting from floppies 2002-01-17 22:39:19 +00:00
btx Whoops, missed these bits in the previous commit. 2001-11-03 22:21:21 +00:00
cdboot Remove a few more debugging bits and turn on twiddle output while reading 2001-11-07 01:20:33 +00:00
gptboot Oops, the previous revision (1.35) broke booting from floppies 2002-01-17 22:39:19 +00:00
kgzldr Unset MAINTAINER. 2001-07-21 14:32:47 +00:00
libi386 Don't turn on RB_CDROM if the rootdev is a BIOS cd device for now as this 2002-01-04 07:59:27 +00:00
liloldr Fix a bug which prevents parsing this Makefile without having a 2000-09-05 22:33:07 +00:00
loader - Add 'fwrite' and 'fseek' words for writing to and seeking on files. 2001-12-11 00:49:34 +00:00
mbr Unset MAINTAINER. 2001-07-21 14:32:47 +00:00
pxeldr Allow for text section alignment to properly align the "end" symbol at the 2001-08-09 20:47:58 +00:00
Makefile Use the new cdboot instead of cdldr. 2001-11-04 03:27:06 +00:00
Makefile.inc Add -mpreferred-stack-boundary=2 to CFLAGS for i386. This and libstand 2000-08-11 23:23:20 +00:00