summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2017-04-21 04:18:48 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2017-04-21 04:18:48 +0000
commitb205e7a4aa0d0df503e8a11788cfa763427ef280 (patch)
tree684b21682ca7c4a077e75caceb07b860b73cb2ce /usr.sbin
parentd39ce9b76b72ff73ac8c2c96bfd670f323453b41 (diff)
vmd(8) pci emulation fix required for upcoming option rom support.
This will be used in the future to support an sgabios option rom, to do VGA text mode console redirection. ok reyk
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/vmd/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/pci.c b/usr.sbin/vmd/pci.c
index e6899273304..41f5878cc8b 100644
--- a/usr.sbin/vmd/pci.c
+++ b/usr.sbin/vmd/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.16 2017/03/27 00:28:04 deraadt Exp $ */
+/* $OpenBSD: pci.c,v 1.17 2017/04/21 04:18:47 mlarkin Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -345,7 +345,7 @@ pci_handle_data_reg(struct vm_run_params *vrp)
}
/* XXX - discard writes to reassign IRQs / pins */
- if (o != 0x3c)
+ if (o != 0x3c && o != 0x30 && o != 0x38)
get_input_data(vei, &pci.pci_devices[d].pd_cfg_space[o / 4]);
/* IOBAR registers must have bit 0 set */