Modules/ATA - A little more debug
authorJohn Hodge <[email protected]>
Thu, 14 Jun 2012 08:48:23 +0000 (16:48 +0800)
committerJohn Hodge <[email protected]>
Thu, 14 Jun 2012 08:48:23 +0000 (16:48 +0800)
KernelLand/Modules/Storage/ATA/io.c

index b8a15d0..89f1a46 100644 (file)
@@ -371,6 +371,10 @@ int ATA_ReadDMA(Uint8 Disk, Uint64 Address, Uint Count, void *Buffer)
        {
                HALT();
        }
+       
+       if( now() >= timeoutTime ) {
+               Log_Notice("ATA", "Timeout of %i ms exceeded", ATA_TIMEOUT);
+       }
 
        // Complete Transfer
        ATA_int_BusMasterWriteByte( cont * 8, 8 );      // Read and stop

UCC git Repository :: git.ucc.asn.au