Write interrupt ack register in virtio_disk_intr()

This commit is contained in:
Takahiro 2020-04-18 14:49:54 -07:00
parent 9ead904afe
commit 7a5fcb28b3

View file

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