From: John Hodge Date: Thu, 14 Jun 2012 08:48:23 +0000 (+0800) Subject: Modules/ATA - A little more debug X-Git-Tag: rel0.15~611^2~56 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;ds=sidebyside;h=c81bb96ab6d0cb1fecb7b5ce7ca5bf56be59a1d0;p=tpg%2Facess2.git Modules/ATA - A little more debug --- diff --git a/KernelLand/Modules/Storage/ATA/io.c b/KernelLand/Modules/Storage/ATA/io.c index b8a15d01..89f1a464 100644 --- a/KernelLand/Modules/Storage/ATA/io.c +++ b/KernelLand/Modules/Storage/ATA/io.c @@ -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