Le samedi 16 mai 2009 à 20:16 -0400, Pavel Roskin a écrit :
struct ata_sector was meant to facilitate taking upper and lower byte of the sector. However, the implementation is incorrect, as "struct" and "union" are swapped in the definition. What's worse, it's an overkill for that simple task. The code should be transparent without knowing how struct ata_sector is defined.
Applied a slightly modified patch (remove useless "& 0xff") as r489
Thanks, Laurent