719f44ec8a
Waiting for any non-zero duration currently waits for at least one timer cycle (10 ms), which is especially expensive during early boot. The current workaround of simply reading the status 14 times seems really suspicious although the osdev wiki documents it, but let's see how well it works on real hardware, it's probably good enough. Try to determine the initial selected drive to save one drive selection. |
||
---|---|---|
.. | ||
ata.cpp | ||
ata.h | ||
hba.cpp | ||
hba.h | ||
port.cpp | ||
port.h | ||
registers.h |