Fix stupid math mistake in r366922.
MFC after: 3 days
This commit is contained in:
parent
04914a2195
commit
69df0af073
@ -2580,7 +2580,7 @@ ahci_setup_fis(struct ahci_channel *ch, struct ahci_cmd_tab *ctp, union ccb *ccb
|
||||
fis[11] = ccb->ataio.cmd.features_exp;
|
||||
fis[12] = ccb->ataio.cmd.sector_count;
|
||||
if (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) {
|
||||
fis[12] &= 0xf8;
|
||||
fis[12] &= 0x07;
|
||||
fis[12] |= tag << 3;
|
||||
}
|
||||
fis[13] = ccb->ataio.cmd.sector_count_exp;
|
||||
|
@ -1725,7 +1725,7 @@ siis_setup_fis(device_t dev, struct siis_cmd *ctp, union ccb *ccb, int tag)
|
||||
fis[11] = ccb->ataio.cmd.features_exp;
|
||||
fis[12] = ccb->ataio.cmd.sector_count;
|
||||
if (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) {
|
||||
fis[12] &= 0xf8;
|
||||
fis[12] &= 0x03;
|
||||
fis[12] |= tag << 3;
|
||||
}
|
||||
fis[13] = ccb->ataio.cmd.sector_count_exp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user