From: mlarkin Date: Fri, 21 Apr 2017 04:18:47 +0000 (+0000) Subject: vmd(8) pci emulation fix required for upcoming option rom support. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b745547b189e0ac38f2bd8bd89276c145b5dbf1c;p=openbsd 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 --- 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 @@ -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 */