summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2017-11-29 22:08:41 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2017-11-29 22:08:41 +0000
commit66d802b9b8b9fee0dc7eec5ab588d30c5efe79a7 (patch)
treedb55d15b01b5b0019510f7556d112bcec5f3b557
parentdef150e3c39dd34941854602fb15ca988f9831d5 (diff)
vmd(8): fix broken IRR bit setting for the slave PIC. Noticed by claudio
when he tried to make a vm with 4 network interfaces. ok claudio
-rw-r--r--usr.sbin/vmd/i8259.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/i8259.c b/usr.sbin/vmd/i8259.c
index 2c1e8dcd610..594420560b2 100644
--- a/usr.sbin/vmd/i8259.c
+++ b/usr.sbin/vmd/i8259.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i8259.c,v 1.15 2017/09/18 00:05:15 dlg Exp $ */
+/* $OpenBSD: i8259.c,v 1.16 2017/11/29 22:08:40 mlarkin Exp $ */
/*
* Copyright (c) 2016 Mike Larkin <mlarkin@openbsd.org>
*
@@ -223,7 +223,7 @@ i8259_assert_irq(uint8_t irq)
} else {
irq -= 8;
if (!ISSET(pics[SLAVE].imr, 1 << irq)) {
- SET(pics[SLAVE].irr, irq);
+ SET(pics[SLAVE].irr, 1 << irq);
pics[SLAVE].asserted = 1;
/* Assert cascade IRQ on master PIC */