Merge pull request #10 from takahirox/VirtioInterruptAck

Write virtio interrupt ack register in virtio_disk_intr()
This commit is contained in:
Frans Kaashoek 2020-08-10 13:24:57 -04:00 committed by GitHub
commit 93ca5550b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -264,6 +264,7 @@ virtio_disk_intr()
disk.used_idx = (disk.used_idx + 1) % NUM; disk.used_idx = (disk.used_idx + 1) % NUM;
} }
*R(VIRTIO_MMIO_INTERRUPT_ACK) = *R(VIRTIO_MMIO_INTERRUPT_STATUS) & 0x3;
release(&disk.vdisk_lock); release(&disk.vdisk_lock);
} }