From: John Hodge Date: Tue, 11 May 2010 02:15:14 +0000 (+0800) Subject: Correctness in ATA driver X-Git-Tag: rel0.06~197^2~1 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f69b8089900c0d1d08ea4b430d54519040ec4466;p=tpg%2Facess2.git Correctness in ATA driver --- diff --git a/Modules/Storage/ATA/main.c b/Modules/Storage/ATA/main.c index 0aadb6eb..3ba921db 100644 --- a/Modules/Storage/ATA/main.c +++ b/Modules/Storage/ATA/main.c @@ -149,7 +149,7 @@ int ATA_SetupIO() if( !(gATA_BusMasterBase & 1) ) { if( gATA_BusMasterBase < 0x100000 ) - gATA_BusMasterBasePtr = (void*)(0xC0000000|gATA_BusMasterBase); + gATA_BusMasterBasePtr = (void*)(KERNEL_BASE|gATA_BusMasterBase); else gATA_BusMasterBasePtr = (void*)( MM_MapHWPages( gATA_BusMasterBase, 1 ) + (gATA_BusMasterBase&0xFFF) ); LOG("gATA_BusMasterBasePtr = %p", gATA_BusMasterBasePtr);