More mouse fixes (thanks, coldbrewed!), and mitigated IRQ clear spam from serial and AT NVR.

This commit is contained in:
OBattler
2023-08-13 17:25:45 +02:00
parent e7dd8664f2
commit 3e2a31eb97
3 changed files with 73 additions and 42 deletions

View File

@@ -109,8 +109,12 @@ serial_transmit_period(serial_t *dev)
void
serial_do_irq(serial_t *dev, int set)
{
if (dev->irq != 0xff)
picint_common(1 << dev->irq, !!(dev->type >= SERIAL_16450), set, &dev->irq_state);
if (dev->irq != 0xff) {
if (set || (dev->irq_state != !!set))
picint_common(1 << dev->irq, !!(dev->type >= SERIAL_16450), set, &dev->irq_state);
if (dev->type >= SERIAL_16450)
dev->irq_state = !!set;
}
}
void