summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2016-09-03 11:36:09 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2016-09-03 11:36:09 +0000
commit35e448bc64248e025ec91066f13d27b71f283f61 (patch)
tree188fdd848dce85ff5b1a5163fb30424db697c007 /usr.sbin
parentb953ed778fd30f63baa6aff8784b0863bed3569f (diff)
fix some wrong interrupt code that doesn't fit with the new model
ok stefan@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/vmd/ns8250.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/usr.sbin/vmd/ns8250.c b/usr.sbin/vmd/ns8250.c
index 4347b1f1c9b..b5870c134bf 100644
--- a/usr.sbin/vmd/ns8250.c
+++ b/usr.sbin/vmd/ns8250.c
@@ -124,14 +124,6 @@ com_rcv(struct ns8250_dev *com, uint32_t vm_id, uint32_t vcpu_id)
}
}
- /*
- * Clear "interrupt pending" by setting IIR low bit to 1 if no
- * interrupts are pending
- */
- /* XXX these iir magic numbers should be IIR_x */
- if ((com->regs.iir & ~0x1) == 0x0)
- com->regs.iir = 0x1;
-
com->rcv_pending = fd_hasdata(com->fd);
}