ide_isa: integrate fix for #2880
This was fixed in 2008 in the ide_pci driver, but has never been merged in ide_isa. It probably won't matter as machine with IDE on the ISA bus are unlikely to run Haiku. Thanks to philcostin for finding the problem using cppcheck.
This commit is contained in:
@@ -120,7 +120,7 @@ write_command_block_regs(void *channel_cookie, ata_task_file *tf,
|
|||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|
||||||
for (i = 0; i < 7; i++) {
|
for (i = 0; i < 7; i++) {
|
||||||
if (((1 << (i-7)) & mask) != 0) {
|
if (((1 << (i + 7)) & mask) != 0) {
|
||||||
TRACE("write_command_block_regs(): %x->HI(%x)\n",
|
TRACE("write_command_block_regs(): %x->HI(%x)\n",
|
||||||
tf->raw.r[i + 7], i);
|
tf->raw.r[i + 7], i);
|
||||||
channel->isa->write_io_8(ioaddr + 1 + i, tf->raw.r[i + 7]);
|
channel->isa->write_io_8(ioaddr + 1 + i, tf->raw.r[i + 7]);
|
||||||
|
|||||||
Reference in New Issue
Block a user