[ECOS] i386 flopy load problem.

Fabrice Gautier Fabrice_Gautier@sdesigns.com
Wed Nov 1 21:10:00 GMT 2000


Hi,

The current code for loading from the floppy won't work in many case. It
will be subject to what i call the "buffer cross 64k boundary problem": The
bios function can't handle a buffer that cross a 64k boundary (This is also
refered as "DMA access across 64k boundary" in some docs)

The current code load track by track, and so there is a good chance to cross
a 64K boundary during a track load, if the image size is big enough.

The only way to avoid the problem is to load one sector at a time, and to
align _start on 512 bytes. This is slower but who cares?

Attached is a patch against platform.S

Regards,

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: load.patch
Type: text/x-diff
Size: 4183 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20001101/922428d7/attachment.bin>


More information about the Ecos-discuss mailing list