diff options
author | mlarkin <mlarkin@openbsd.org> | 2018-04-26 17:10:09 +0000 |
---|---|---|
committer | mlarkin <mlarkin@openbsd.org> | 2018-04-26 17:10:09 +0000 |
commit | 03fd2d06315b8fe113fbada40c57be256a4fe9d4 (patch) | |
tree | 715c7fc73d7ca7f6774b67175fddec3170e5c5e6 /usr.sbin/vmd/vm.c | |
parent | Add error handling to unconfuse myself when playing with pledgepath(). (diff) | |
download | wireguard-openbsd-03fd2d06315b8fe113fbada40c57be256a4fe9d4.tar.xz wireguard-openbsd-03fd2d06315b8fe113fbada40c57be256a4fe9d4.zip |
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.c | 3 |
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); |