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:
Michael Lotz 2009-08-22 16:41:17 +00:00
parent 7f5799140f
commit b7f73c6e2a

View File

@ -273,12 +273,13 @@ ATAChannel::SelectDevice(uint8 device)
_FlushAndWait(1);
#if 0
#if 1
// for debugging only
_ReadRegs(&taskFile, ATA_MASK_DEVICE_HEAD);
if (taskFile.chs.device != device) {
TRACE_ERROR("device %d not selected! head 0x%x, mode 0x%x, device %d\n",
device, taskFile.chs.head, taskFile.chs.mode, taskFile.chs.device);
if (taskFile.lba.device != device) {
TRACE_ERROR("device %d not selected! unused 0x%x, mode 0x%x,"
" device %d\n", device, taskFile.lba.lba_24_27, taskFile.lba.mode,
taskFile.lba.device);
return B_ERROR;
}
#endif