From 5fc10ecb5088f6a6055c712a06085f5380d2b40c Mon Sep 17 00:00:00 2001 From: Panagiotis <58827426+tiseno100@users.noreply.github.com> Date: Tue, 16 Mar 2021 12:51:12 +0200 Subject: [PATCH] Added missing brackets on the UMC HB4 Fixes the IDE controller on the HOT-433A. --- src/chipset/umc_hb4.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/chipset/umc_hb4.c b/src/chipset/umc_hb4.c index 2cc4f5582..a2df0b4fc 100644 --- a/src/chipset/umc_hb4.c +++ b/src/chipset/umc_hb4.c @@ -93,7 +93,7 @@ Bits 7-4 PCI IRQ for INTD Bits 3-0 PCI IRQ for INTC Function 0 Register 46: -Bit 7: Generate SMI for IRQ (1: IRQ15/0: IRQ10) +Bit 7: Replace SMI request for non-SMM CPU's (1: IRQ15/0: IRQ10) Function 0 Register 51: Bit 2: VGA Power Down (0: Standard/1: VESA DPMS) @@ -295,8 +295,10 @@ um8886_write(int func, int addr, uint8_t val, void *priv) break; case 1: /* IDE Controller */ if ((addr == 4) && HAS_IDE) + { dev->pci_conf_sb[func][addr] = val; - ide_handler(val & 1); + ide_handler(val & 1); + } break; } }