summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-all.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2002-06-08 21:33:42 +0000
committersos <sos@FreeBSD.org>2002-06-08 21:33:42 +0000
commitc2750abc35ce901efc9e0b3acd9aa1bc6c0309b0 (patch)
treef41a58cc392edddf227781cb110a5a25e7767f7d /sys/dev/ata/ata-all.c
parentec1445e1ae04f2702985c6ef2925b564ce7eda0a (diff)
downloadFreeBSD-src-c2750abc35ce901efc9e0b3acd9aa1bc6c0309b0.zip
FreeBSD-src-c2750abc35ce901efc9e0b3acd9aa1bc6c0309b0.tar.gz
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 :)
Diffstat (limited to 'sys/dev/ata/ata-all.c')
-rw-r--r--sys/dev/ata/ata-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c
index 2958b2c..c3c252d 100644
--- a/sys/dev/ata/ata-all.c
+++ b/sys/dev/ata/ata-all.c
@@ -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);
OpenPOWER on IntegriCloud