summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd/vm.c
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2018-04-26 17:10:11 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2018-04-26 17:10:11 +0000
commit645124952fb69014446ee4a7b080336f220fdc08 (patch)
tree1cd1a9ee662ac11ed7a14bc8e48ccd93dd7549f3 /usr.sbin/vmd/vm.c
parent5855818db0160e04314e02dceec16d5754ef0356 (diff)
vmd(8): handle PIT channel 2 status readback via port 0x61
Allow PIT channel 2 status (fired/counting) readback via port 0x61 bit 5. ok guenther@
Diffstat (limited to 'usr.sbin/vmd/vm.c')
-rw-r--r--usr.sbin/vmd/vm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/vmd/vm.c b/usr.sbin/vmd/vm.c
index 32c5c52454d..18327eb3cdb 100644
--- a/usr.sbin/vmd/vm.c
+++ b/usr.sbin/vmd/vm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm.c,v 1.31 2018/01/03 05:39:56 ccardenas Exp $ */
+/* $OpenBSD: vm.c,v 1.32 2018/04/26 17:10:10 mlarkin Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -922,6 +922,7 @@ init_emulated_hw(struct vmop_create_params *vmc, int child_cdrom,
ioports_map[TIMER_BASE + TIMER_CNTR0] = vcpu_exit_i8253;
ioports_map[TIMER_BASE + TIMER_CNTR1] = vcpu_exit_i8253;
ioports_map[TIMER_BASE + TIMER_CNTR2] = vcpu_exit_i8253;
+ ioports_map[PCKBC_AUX] = vcpu_exit_i8253_misc;
/* Init mc146818 RTC */
mc146818_init(vcp->vcp_id, memlo, memhi);