X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/f89517343bf062d299d54408eea2f9387bfefb6d..ca2485429c19d3e5cdecbb39a5f3383b40477d94:/lunaix-os/hal/ahci/ahci.c?ds=sidebyside diff --git a/lunaix-os/hal/ahci/ahci.c b/lunaix-os/hal/ahci/ahci.c index 5ff1cc2..fb196fa 100644 --- a/lunaix-os/hal/ahci/ahci.c +++ b/lunaix-os/hal/ahci/ahci.c @@ -14,8 +14,6 @@ #include #include -#include - #include #include #include @@ -70,7 +68,7 @@ __hba_reset_port(hba_reg_t* port_reg) } // 如果port未响应,则继续执行重置 port_reg[HBA_RPxSCTL] = (port_reg[HBA_RPxSCTL] & ~0xf) | 1; - port_delay(100000); // 等待至少一毫秒,差不多就行了 + port_reg[HBA_RPxSCTL] &= ~0xf; }