1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys/boot/i386
John Baldwin ab9e9f9d2d Argh! Fix a brainfart of mine. In the old boot0, we relocated ourself
to 0x600 via a 'rep movsw'.  Once that was done, %cx was zero, so we could
simply use 'movb' to update the lower byte of %cx in preparation for
zeroing out the fake partition entry used to boot to other drives via F5.
Well, in the new boot0, we don't actually relocate ourselves, instead it
is easier to create the fake partition entry first and then just use it to
get the BIOS to load all of boot0 into memory at 0x600.  However, since we
aren't doing the relocate code anymore, we don't know that %cx == 0 when
we hit the 'movb' to setup %cx for clearning the fake partition entry.
Thus, if %ch != 0 when the BIOS started boot0, then it would end up zeroing
a lot more memory than just 8 words.  The solution is to do a word move of
$8 into %cx.

Debugging help from:	David Wolfskill <dhw@whistle.com>
2000-08-04 22:37:21 +00:00
..
boot0 Argh! Fix a brainfart of mine. In the old boot0, we relocated ourself 2000-08-04 22:37:21 +00:00
boot2 - Inline all the functions that are only called once. This results in a 2000-07-06 01:51:27 +00:00
btx Emulate the WBINVD instruction when it is called by the BIOS. 2000-07-06 00:13:21 +00:00
cdboot Grrr, fix a silly 'movl' -> 'movw' typo in both pxeldr and cdldr. Also, 2000-05-23 12:31:32 +00:00
cdldr Grrr, fix a silly 'movl' -> 'movw' typo in both pxeldr and cdldr. Also, 2000-05-23 12:31:32 +00:00
gptboot - Inline all the functions that are only called once. This results in a 2000-07-06 01:51:27 +00:00
kgzldr
libi386 Cleanup warnings. Most of these are signed/unsigned warnings, as well as 2000-08-03 09:14:02 +00:00
liloldr Unbreak the build -- no manual page for this yet. 2000-07-17 19:03:58 +00:00
loader Cleanup warnings. Most of these are signed/unsigned warnings, as well as 2000-08-03 09:14:02 +00:00
mbr - Don't blindly assume that there are 8 hard drives installed. Instead, 2000-06-27 20:04:10 +00:00
pxeldr Remove commented out NOMAN variable. 2000-07-07 20:37:11 +00:00
Makefile Hook up liloldr 2000-07-17 17:06:27 +00:00
Makefile.inc Mega i386 loader commit. 2000-03-28 01:19:53 +00:00