Moved task selection to threads.c, fixed segfault in Proc_ChangeStacks
[tpg/acess2.git] / Kernel / drv / ata_x86.c
index a4c5306..837085b 100644 (file)
@@ -793,7 +793,7 @@ int ATA_ReadDMA(Uint8 Disk, Uint64 Address, Uint Count, void *Buffer)
        ATA_int_BusMasterWriteByte( cont << 3, 9 );     // Read and start
        
        // Wait for transfer to complete
-       while( gaATA_IRQs[cont] == 0 )  Proc_Yield();
+       while( gaATA_IRQs[cont] == 0 )  Threads_Yield();
        
        // Complete Transfer
        ATA_int_BusMasterWriteByte( cont << 3, 0 );     // Write and stop

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