Explicitly reset the latches to disabled before attempting to enable them, fixes the latches failing to enable after a hard reset.

This commit is contained in:
OBattler
2023-05-04 02:20:50 +02:00
parent a29bb505f2
commit 0554b8c785

View File

@@ -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. */