Clean up AHCI: volatile, and sata_reset

This commit is contained in:
Justin C. Miller
2018-05-22 00:31:01 -07:00
parent 1726d10554
commit 7f69a6c9b1
7 changed files with 54 additions and 26 deletions

View File

@@ -31,7 +31,8 @@ wrmsr(uint64_t addr, uint64_t value)
}
void
io_wait()
io_wait(unsigned times)
{
outb(0x80, 0);
for (unsigned i = 0; i < times; ++i)
outb(0x80, 0);
}