From b745547b189e0ac38f2bd8bd89276c145b5dbf1c Mon Sep 17 00:00:00 2001 From: mlarkin Date: Fri, 21 Apr 2017 04:18:47 +0000 Subject: [PATCH] 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 --- usr.sbin/vmd/pci.c | 4 ++-- 1 file 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 @@ -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 */ -- 2.20.1