From 0554b8c7850c0e4326aed5ebebbd16997c3bfac3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 4 May 2023 02:20:50 +0200 Subject: [PATCH] Explicitly reset the latches to disabled before attempting to enable them, fixes the latches failing to enable after a hard reset. --- src/pic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pic.c b/src/pic.c index 62ceabd5d..e078cb94a 100644 --- a/src/pic.c +++ b/src/pic.c @@ -570,6 +570,9 @@ pic_reset_hard(void) { pic_reset(); + /* Explicitly reset the latches. */ + kbd_latch = mouse_latch = 0; + /* The situation is as follows: There is a giant mess when it comes to these latches on real hardware, to the point that there's even boards with board-level latched that get used in place of the latches on the chipset, therefore, I'm just doing this here for the sake of simplicity. */