ahci: ignore spurious interrupts

Qemu 2.0 makes trouble when using seoul-disc.run - related to #1261
This commit is contained in:
Alexander Boettcher 2014-09-26 09:29:40 +02:00 committed by Christian Helmuth
parent ba34bc32c2
commit 9f8c87f2ed

View File

@ -449,6 +449,9 @@ class Ahci_device_base
/* write CI (command issue) slot 0 */
_port->cmd_issue(1);
uint32_t status = 0;
while (!status) {
/* wait for interrupt */
_irq->wait_for_irq();
@ -457,7 +460,8 @@ class Ahci_device_base
_ctrl->hba_intr_status(), _port->intr_status(), _port->err());
/* acknowledge interrupt */
uint32_t status = _port->interrupt_ack();
status = _port->interrupt_ack();
}
/* check for error */
enum {