freebsd-dev/sys/boot/i386/libi386
John Baldwin 4939882522 If a transfer to or from a floppy disk crosses a 64k boundary, we have to
use a bounce buffer for the actual transfer to avoid crossing a 64k
boundary.  To do this, we malloc a buffer twice as big as we need and then
find an aligned block within that buffer to do the transfer.  The check
to see which part of the block we use used the wrong variable for part of
the condition meaning that in certain edge cases we would ask the BIOS to
cross a 64k boundary.  The BIOS request would then fail resulting in file
transfers that just magically fail in the middle without any apparent
reason.  Specifically, my tests for the splitfs boot floppies managed to
trigger this edge case.

MFC after:	1 week
X-MFC-info:	along with fixes to libstand filesystems
2004-01-21 23:22:29 +00:00
..
amd64_tramp.S Fix a bug in the AMD64 trampoline. I misunderstood the implicit 2003-05-17 00:30:51 +00:00
biosacpi.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
bioscd.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
biosdisk.c If a transfer to or from a floppy disk crosses a 64k boundary, we have to 2004-01-21 23:22:29 +00:00
biosmem.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
biospci.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
biospnp.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
biossmap.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
bootinfo32.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
bootinfo64.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
bootinfo.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
comconsole.c Don't repeat selected defines from ns16550.h or sioreg.h. Just 2003-09-16 11:24:23 +00:00
devicename.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
elf32_freebsd.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
elf64_freebsd.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
gatea20.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
i386_copy.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
i386_module.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
libi386.h Enable the i386 loader to load and run an amd64 kernel. If this puts 2003-05-01 03:56:30 +00:00
Makefile Revert non-style part of the recent two deltas that dealt with 2003-07-02 12:45:45 +00:00
nullconsole.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
pread.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
pxe.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
pxe.h use __packed. 2002-09-23 18:54:32 +00:00
pxetramp.s Whitespace fixes. 2001-10-04 10:18:00 +00:00
time.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00
vidconsole.c Use __FBSDID(). 2003-08-25 23:28:32 +00:00