vmd(8): route ELCR handler to the right function
authormlarkin <mlarkin@openbsd.org>
Tue, 10 Jul 2018 08:40:20 +0000 (08:40 +0000)
committermlarkin <mlarkin@openbsd.org>
Tue, 10 Jul 2018 08:40:20 +0000 (08:40 +0000)
usr.sbin/vmd/vm.c

index aeb85a4..2f57d76 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: vm.c,v 1.35 2018/07/09 16:07:55 mlarkin Exp $ */
+/*     $OpenBSD: vm.c,v 1.36 2018/07/10 08:40:20 mlarkin Exp $ */
 
 /*
  * Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -935,8 +935,8 @@ init_emulated_hw(struct vmop_create_params *vmc, int child_cdrom,
        ioports_map[IO_ICU1 + 1] = vcpu_exit_i8259;
        ioports_map[IO_ICU2] = vcpu_exit_i8259;
        ioports_map[IO_ICU2 + 1] = vcpu_exit_i8259;
-       ioports_map[ELCR0] = vcpu_exit_i8259;
-       ioports_map[ELCR1] = vcpu_exit_i8259;
+       ioports_map[ELCR0] = vcpu_exit_elcr;
+       ioports_map[ELCR1] = vcpu_exit_elcr;
 
        /* Init ns8250 UART */
        ns8250_init(con_fd, vcp->vcp_id);