* Fixed off by one bug... math can be so hard ;-)

* This fixes bug #2880, ie. make the ide_adapter write the IDE task file
  correctly to the command register, CD-ROMs are working again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28339 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-10-26 18:27:54 +00:00
parent fad11a1c88
commit 1998abd8ea
@@ -57,7 +57,8 @@ ide_adapter_write_command_block_regs(ide_adapter_channel_info *channel,
return B_ERROR;
for (i = 0; i < 7; i++) {
if (((1 << (i + 6)) & mask) != 0) {
// LBA48 registers must be written twice
if (((1 << (i + 7)) & mask) != 0) {
SHOW_FLOW( 4, "%x->HI(%x)", tf->raw.r[i + 7], i );
pci->write_io_8(device, ioaddr + 1 + i, tf->raw.r[i + 7]);
}