From 14b4663d3a932e485faef03716169d15224bda20 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 26 Dec 2013 23:03:51 +0800 Subject: [PATCH] Modules/ATA - (minor) Updated commenting --- KernelLand/Modules/Storage/ATA/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KernelLand/Modules/Storage/ATA/io.c b/KernelLand/Modules/Storage/ATA/io.c index 5c979e48..8b2d1b79 100644 --- a/KernelLand/Modules/Storage/ATA/io.c +++ b/KernelLand/Modules/Storage/ATA/io.c @@ -183,11 +183,11 @@ int ATA_SetupIO(void) LOG("gATA_PRDTs = {PBufAddr: 0x%x, PBufAddr: 0x%x}", gATA_PRDTs[0].PBufAddr, gATA_PRDTs[1].PBufAddr); - // TODO: Ensure that this is within 32-bits gaATA_PRDT_PAddrs[0] = MM_GetPhysAddr( &gATA_PRDTs[0] ); gaATA_PRDT_PAddrs[1] = MM_GetPhysAddr( &gATA_PRDTs[1] ); LOG("gaATA_PRDT_PAddrs = {0x%P, 0x%P}", gaATA_PRDT_PAddrs[0], gaATA_PRDT_PAddrs[1]); #if PHYS_BITS > 32 + // Ensure that this is within 32-bits if( gaATA_PRDT_PAddrs[0] >> 32 || gaATA_PRDT_PAddrs[1] >> 32 ) { Log_Error("ATA", "Physical addresses of PRDTs are not in 32-bits (%P and %P)", gaATA_PRDT_PAddrs[0], gaATA_PRDT_PAddrs[1]); -- 2.20.1