mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 07:20:32 +00:00
Replace AHCIPortCmdWait processed-check with debug bit shift AND comparison.
This commit is contained in:
parent
56107409db
commit
276e58e43f
1 changed files with 2 additions and 1 deletions
|
@ -228,7 +228,8 @@ U0 AHCIPortCmdWait(I64 port_num, I64 cmd_slot)
|
|||
|
||||
while (TRUE)
|
||||
{
|
||||
if (!Bt(&port->cmd_issue, cmd_slot)) //When command has been processed
|
||||
// if (!Bt(&port->cmd_issue, cmd_slot)) //When command has been processed
|
||||
if (!(port->cmd_issue & (1 << cmd_slot))) //When command has been processed (using & and 1 << for debug)
|
||||
break;
|
||||
|
||||
if (Bt(&port->interrupt_status, AHCI_PxIf_TFE)) //Task File Error ($LK,"ATAS_ERR",A="MN:ATAS_ERR"$)
|
||||
|
|
Loading…
Reference in a new issue