Update and enable the debugging device selection check. Might shed some light on
the problem in #4308. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32616 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -273,12 +273,13 @@ ATAChannel::SelectDevice(uint8 device)
|
|||||||
|
|
||||||
_FlushAndWait(1);
|
_FlushAndWait(1);
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
// for debugging only
|
// for debugging only
|
||||||
_ReadRegs(&taskFile, ATA_MASK_DEVICE_HEAD);
|
_ReadRegs(&taskFile, ATA_MASK_DEVICE_HEAD);
|
||||||
if (taskFile.chs.device != device) {
|
if (taskFile.lba.device != device) {
|
||||||
TRACE_ERROR("device %d not selected! head 0x%x, mode 0x%x, device %d\n",
|
TRACE_ERROR("device %d not selected! unused 0x%x, mode 0x%x,"
|
||||||
device, taskFile.chs.head, taskFile.chs.mode, taskFile.chs.device);
|
" device %d\n", device, taskFile.lba.lba_24_27, taskFile.lba.mode,
|
||||||
|
taskFile.lba.device);
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user