[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: nfblock vs udev

Geert Uytterhoeven píše v Čt 28. 08. 2008 v 13:20 +0200:

> > 3) ARAnyM XHRead(16.0, recno=0, count=65280, buf=$8) is called - it
> > tries to read 65280 sectors to address $8, so it's going to overwrite
> > bottom 32 MB of memory with data from the disk drive.

> Same here: 8 blocks is 4 KiB.
> So the values passed to the `buf' parameter are actually values for the `count'
> parameter.
> However, the values passed to the `count' parameter are not buffer
> addresses

I don't think it's swapped. IMHO it's more like the count is to be a
16bit value but it's passed in as 32bit: count 0x00000008 -> count
0x0000 + buffer 0x0008 - or something along this line, I'd guess.

I've had a super quick look at the nfblock implementation and it's
surprisingly messing with C/H/S geometry so it might be related to that
as well. Will debug and see.


Reply to: