From c81bb96ab6d0cb1fecb7b5ce7ca5bf56be59a1d0 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 14 Jun 2012 16:48:23 +0800 Subject: [PATCH] Modules/ATA - A little more debug --- KernelLand/Modules/Storage/ATA/io.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.20.1