mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
Clean up AHCI: volatile, and sata_reset
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user