diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2001-10-06 11:07:04 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2001-10-06 11:07:04 +0000 |
| commit | 8975eded2683a06cdb960e6e70944de67c126222 (patch) | |
| tree | 19e354ace73ab242b6d780a15f7f18ee6c43ada9 /sys/dev/ata/ata-raid.c | |
| parent | 300634ffe0579f772d157b7be6c15f8125380f8e (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata/ata-raid.c')
| -rw-r--r-- | sys/dev/ata/ata-raid.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c index 7b9cfc37200a..480b5acd6182 100644 --- a/sys/dev/ata/ata-raid.c +++ b/sys/dev/ata/ata-raid.c @@ -549,9 +549,8 @@ int ar_read(struct ad_softc *adp, u_int32_t lba, int count, char *data) { if (ata_command(adp->controller, adp->unit | ATA_D_LBA, - (count > DEV_BSIZE) ? ATA_C_READ_MUL : ATA_C_READ, - (lba >> 8) & 0xffff, (lba >> 24) & 0xff, lba & 0xff, - count / DEV_BSIZE, 0, ATA_WAIT_INTR)) { + (count > DEV_BSIZE) ? ATA_C_READ_MUL : ATA_C_READ, + lba, count / DEV_BSIZE, 0, ATA_WAIT_INTR)) { ata_printf(adp->controller, adp->unit, "RAID read config failed\n"); return 1; } |
