[Denali] Use semaphores for DMA callback signaling.

This commit is contained in:
Drew Galbraith 2023-11-22 10:56:07 -08:00
parent 4c2492e985
commit 2b8ae027df
4 changed files with 19 additions and 22 deletions

View file

@ -85,7 +85,7 @@ void AhciDevice::HandleIrq() {
for (uint64_t i = 0; i < 32; i++) {
if (commands_finished & (1 << i)) {
commands_issued_ &= ~(1 << i);
commands_[i]->Callback();
commands_[i]->SignalComplete();
}
}