Correctness in ATA driver
authorJohn Hodge <[email protected]>
Tue, 11 May 2010 02:15:14 +0000 (10:15 +0800)
committerJohn Hodge <[email protected]>
Tue, 11 May 2010 02:15:14 +0000 (10:15 +0800)
Modules/Storage/ATA/main.c

index 0aadb6e..3ba921d 100644 (file)
@@ -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);

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