speaking this is not necessary as all used bits of the uint32_t are
zeroed.
ok mlarkin
-/* $OpenBSD: i8253.c,v 1.35 2022/09/02 21:33:51 cheloha Exp $ */
+/* $OpenBSD: i8253.c,v 1.36 2022/11/10 18:58:02 mbuhl Exp $ */
/*
* Copyright (c) 2016 Mike Larkin <mlarkin@openbsd.org>
*
uint8_t
vcpu_exit_i8253(struct vm_run_params *vrp)
{
- uint32_t out_data;
+ uint32_t out_data = 0;
uint8_t sel, rw, data;
uint64_t ns, ticks;
struct timespec now, delta;
-/* $OpenBSD: i8259.c,v 1.20 2021/06/16 16:55:02 dv Exp $ */
+/* $OpenBSD: i8259.c,v 1.21 2022/11/10 18:58:02 mbuhl Exp $ */
/*
* Copyright (c) 2016 Mike Larkin <mlarkin@openbsd.org>
*
i8259_io_write(struct vm_exit *vei)
{
uint16_t port = vei->vei.vei_port;
- uint32_t data;
+ uint32_t data = 0;
uint8_t n = 0;
get_input_data(vei, &data);