Fix a '<<' that should have been a '>>' in the 48bit case.
Fortunately we only have had 32bit block counts until recently, and no 2TB disks :)
This commit is contained in:
parent
ec1445e1ae
commit
c2750abc35
@ -1033,7 +1033,7 @@ ata_command(struct ata_device *atadev, u_int8_t command,
|
||||
ATA_OUTB(atadev->channel->r_io, ATA_COUNT, count & 0xff);
|
||||
ATA_OUTB(atadev->channel->r_io, ATA_SECTOR, (lba>>24) & 0xff);
|
||||
ATA_OUTB(atadev->channel->r_io, ATA_SECTOR, lba & 0xff);
|
||||
ATA_OUTB(atadev->channel->r_io, ATA_CYL_LSB, (lba<<32) & 0xff);
|
||||
ATA_OUTB(atadev->channel->r_io, ATA_CYL_LSB, (lba>>32) & 0xff);
|
||||
ATA_OUTB(atadev->channel->r_io, ATA_CYL_LSB, (lba>>8) & 0xff);
|
||||
ATA_OUTB(atadev->channel->r_io, ATA_CYL_MSB, (lba>>40) & 0xff);
|
||||
ATA_OUTB(atadev->channel->r_io, ATA_CYL_MSB, (lba>>16) & 0xff);
|
||||
|
Loading…
x
Reference in New Issue
Block a user