From 0f2301c9bf5eeea55a8d2c326319a3b32304acc0 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 28 Apr 2023 23:38:55 +0200 Subject: [PATCH] The SiS 50x now initializes the PS/2 keyboard and mouse IRQ latch if a PS/2 keyboard controller is present, needed for the AMI WinBIOS CMOS setup on the Excalibur PCI II. --- src/chipset/sis_85c50x.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/chipset/sis_85c50x.c b/src/chipset/sis_85c50x.c index 56d3a0a30..ebd166d60 100644 --- a/src/chipset/sis_85c50x.c +++ b/src/chipset/sis_85c50x.c @@ -29,6 +29,7 @@ #include <86box/timer.h> #include <86box/apm.h> +#include <86box/machine.h> #include <86box/mem.h> #include <86box/smram.h> #include <86box/pci.h> @@ -416,6 +417,11 @@ sis_85c50x_init(const device_t *info) sis_85c50x_reset(dev); + if (machine_has_bus(machine, MACHINE_BUS_PS2)) { + pic_kbd_latch(0x01); + pic_mouse_latch(0x01); + } + return dev; }