summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd/i8253.c
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2017-03-24 09:11:49 +0000
committermlarkin <mlarkin@openbsd.org>2017-03-24 09:11:49 +0000
commitfd0f638230176f73276160dc474f099f60fc2b81 (patch)
treea1e505c78572bd61a67511e120b6084e3c18c4b7 /usr.sbin/vmd/i8253.c
parentHandle guest interruptibility state - Reset the interruptibility state (diff)
downloadwireguard-openbsd-fd0f638230176f73276160dc474f099f60fc2b81.tar.xz
wireguard-openbsd-fd0f638230176f73276160dc474f099f60fc2b81.zip
Last bits of cleanup for linux/seabios support in i8253/i8259 emulation
code.
Diffstat (limited to 'usr.sbin/vmd/i8253.c')
-rw-r--r--usr.sbin/vmd/i8253.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/i8253.c b/usr.sbin/vmd/i8253.c
index 39b21c49cc1..332bce59ffe 100644
--- a/usr.sbin/vmd/i8253.c
+++ b/usr.sbin/vmd/i8253.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i8253.c,v 1.7 2017/03/23 07:02:47 mlarkin Exp $ */
+/* $OpenBSD: i8253.c,v 1.8 2017/03/24 09:11:49 mlarkin Exp $ */
/*
* Copyright (c) 2016 Mike Larkin <mlarkin@openbsd.org>
*
@@ -133,7 +133,7 @@ vcpu_exit_i8253(struct vm_run_params *vrp)
struct timeval now, delta;
union vm_exit *vei = vrp->vrp_exit;
- out_data = vei->vei.vei_data & 0xFF;
+ out_data = get_input_data(vei);
if (vei->vei.vei_port == TIMER_CTRL) {
if (vei->vei.vei_dir == VEI_DIR_OUT) { /* OUT instruction */