diff options
author | mlarkin <mlarkin@openbsd.org> | 2017-03-25 07:46:24 +0000 |
---|---|---|
committer | mlarkin <mlarkin@openbsd.org> | 2017-03-25 07:46:24 +0000 |
commit | 46635426ba6e01201f3d8e14a59ae7bfe1afe7ee (patch) | |
tree | e8d11ec434ae50a46f84ea9d208a1e7434abf037 /usr.sbin/vmd/i8253.c | |
parent | More PCI extended capabilities handling in pcidump. (diff) | |
download | wireguard-openbsd-46635426ba6e01201f3d8e14a59ae7bfe1afe7ee.tar.xz wireguard-openbsd-46635426ba6e01201f3d8e14a59ae7bfe1afe7ee.zip |
Introduce a new function to obtain properly sized input data, and convert
i8253/i8259/mc146818 emulation to use this.
Diffstat (limited to 'usr.sbin/vmd/i8253.c')
-rw-r--r-- | usr.sbin/vmd/i8253.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/i8253.c b/usr.sbin/vmd/i8253.c index 3f9b7383d7b..2979d492a93 100644 --- a/usr.sbin/vmd/i8253.c +++ b/usr.sbin/vmd/i8253.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i8253.c,v 1.9 2017/03/24 11:08:43 reyk Exp $ */ +/* $OpenBSD: i8253.c,v 1.10 2017/03/25 07:46:24 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 */ |