Write interrupt ack register in virtio_disk_intr()
This commit is contained in:
parent
b557e7c32e
commit
9eff4b0871
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue