[syslinux] Com32 api problem !
H. Peter Anvin
hpa at zytor.com
Tue Mar 25 12:25:56 PDT 2008
PERRIN Jean-Luc wrote:
> (sorry for my english if it is approximate !)
>
> I want to access harddisk from com32 api with PXELINUX.
> I try to use int 13h Extended Read Drive Parameters (48h), it doesn't works.
> Here is my code, I have an error 1 in AH return code.
> Int 13h Read Drive Parameters (08h) work well.
>
You need to preinitialize the size field in the params structure before
calling the interrupt.
*(uint16_t *)__com32.cs_bounce = sizeof disk;
I suggest also zeroing out the input buffer:
memset(__com32.cs_bounce, 0, sizeof disk);
*(uint16_t *)__com32.cs_bounce = sizeof disk;
-hpa
More information about the Syslinux
mailing list