From c8cab397fd8981a1beb9d3d90aa6910d1b8d141e Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 2 Nov 2022 17:42:30 +0100 Subject: [PATCH] Another OPTi 822 fix. --- src/chipset/opti822.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chipset/opti822.c b/src/chipset/opti822.c index e0411c0a2..2605c27b9 100644 --- a/src/chipset/opti822.c +++ b/src/chipset/opti822.c @@ -107,8 +107,8 @@ opti822_update_irqs(opti822_t *dev, int set) // dev->irq_convert = (dev->pci_regs[0x53] & 0x08); dev->irq_convert = 1; - for (i = 0; i < 4; i++) { - reg = 0x80 + (i >> 1); + for (i = 0; i < 16; i++) { + reg = 0x88 + (i >> 1); shift = (i & 1) << 2; val = (dev->pci_regs[reg] >> shift) & 0x0f; irq = irq_map[val & 0x07];