[syslinux] Read disk not working in 3.35+

H. Peter Anvin hpa at zytor.com
Mon Feb 19 20:47:18 PST 2007


H. Peter Anvin wrote:
>>
>>> eg: char sectorBuf[64*1024*2] and getting an address within it which
>>> is aligning to 64k.
>>>
>>> If you dont think the lib function is a good idea, what options do i
>>> have other than using the bounce buffer?
>>
>> None.  The bounce buffer is actually by definition *all* the memory 
>> below 1 MB available to the COM32 program.
>>
> 
> By the way, the best way to use the bounce buffer is really to consider 
> it local around the intcall: copy your data to the bounce buffer 
> immediately before invocation, and copy your data from the bounce buffer 
> immediately after.  This is pretty much what the library functions 
> should do.
> 

Oh yes, one more thing: the bounce buffer is properly aligned.

	-hpa




More information about the Syslinux mailing list